How to use webdriver in selenium

0 votes
How can I make use of the webdriver in selenium? I am using chrome for it. Please help
Dec 20, 2018 in Selenium by Jino
• 5,820 points
896 views

2 answers to this question.

0 votes

In Java, in order to call the webdriver first you will have to set the past and then will have to create an Instance for the webdriver.

So this way you can use the webdriver.

Eg:

System.setProperty("webdriver.chrome.driver","C:\\Your\\path\\chromedriver.exe");\\set the path
WebDriver driver = new ChromeDriver();\\create an instance 

Using the above two statement you are good to go.

You can take a look on this question also
https://www.edureka.co/community/33306/can-someone-explain-the-meaning-webdriver-new-chromedriver

answered Dec 20, 2018 by Shuvodip
0 votes

Hi,

Selenium provides drivers specific to each browser and without revealing the internal logic of browser functionality, the browser driver interacts with the respective browser by establishing a secure connection. These browser drivers are also specific to the language which is used for test case automation like C#, Python, Java, etc.

You can download the browser driver of your choice as per your language requirements. For example, you can configure Selenium Web driver for Python on BrowserStack.

When a test script is executed with the help of WebDriver, the following tasks are performed in the background:

  • An HTTP request is generated and it is delivered to the browser driver for every Selenium Command
  • The HTTP request is received by the driver through an HTTP server
  • All the steps/instructions to be executed on the browser is decided by an HTTP server
  • The HTTP server then receives the execution status and in turn sends it back to the automation scripts

answered Feb 21, 2020 by surbhi
• 260 points

Related Questions In Selenium

0 votes
1 answer

How to use Actions class in Selenium Webdriver?

In seleniun webdriver it is not mandatory ...READ MORE

answered Apr 4, 2018 in Selenium by Damon Salvatore
• 5,980 points
4,072 views
0 votes
1 answer

How to use firefox webdriver (geckodriver) in selenium?

Firefox v47+ with selenium 2.53, you need ...READ MORE

answered Jan 8, 2019 in Selenium by Nabarupa
7,651 views
0 votes
1 answer

How to add Junit library in Eclipse to use with Selenium Webdriver?

Hi Jacky, to add JUnit library in ...READ MORE

answered Jun 12, 2019 in Selenium by Anvi
• 14,150 points
6,546 views
0 votes
1 answer
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,649 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,131 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,209 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,865 views
0 votes
1 answer
0 votes
1 answer

How can I add Cucumber Jar files in Eclipse to use with Selenium Webdriver?

Hey Eshan, follow these steps to add ...READ MORE

answered May 23, 2019 in Selenium by Abha
• 28,140 points
5,975 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP