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,670 points
132 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 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,540 points
2,743 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
3,267 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 11, 2019 in Selenium by Anvi
• 14,050 points
113 views
0 votes
1 answer

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,510 points
2,641 views
0 votes
1 answer
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,870 points
2,075 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,870 points
2,191 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 22, 2019 in Selenium by Abha
• 27,920 points
1,002 views