System.setProperty("webdriver.chrome.driver","") meaning?

0 votes

Can someone help me with the meaning of

System.setProperty("webdriver.chrome.driver","path to chromedriver.exe");
Webdriver driver = new ChromeDriver();

Thank you in advance

Jan 8, 2019 in Selenium by Anjali
• 2,940 points
12,726 views

1 answer to this question.

0 votes

The meaning of the statement are almost similar to what it sounds:-

System.setProperty("webdriver.chrome.driver","path to chromedriver.exe");
// This basically sets the system property to value named webdriver.chrome.driver and the path is mentioned to get the chrome driver
Webdriver driver = new ChromeDriver();
// This is basically used to create an instance of the chrome driver.

Hope you got the meaning of the statements.

answered Jan 8, 2019 by Nabarupa

Related Questions In Selenium

0 votes
1 answer

Setting the webdriver.chrome.driver system property

When u use Selenium 3.x you should ...READ MORE

answered Jun 26, 2018 in Selenium by Samarpit
• 5,870 points
8,072 views
0 votes
1 answer

getting java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property

Hi Sivaranjani, to resolve your issue, Driver path ...READ MORE

answered Sep 3, 2019 in Selenium by Abha
• 27,800 points
1,150 views
0 votes
2 answers

Latest Version of Chrome Driver for Selenium Webdriver

Hi, you can get the latest version ...READ MORE

answered Aug 28, 2019 in Selenium by Abha
• 27,800 points
1,061 views
0 votes
2 answers

webdriver.ie.driver System Property setting driver executable

System.setProperty("webdriver.chrome.driver","C:\\Users\\vthaduri\\workspace\\LDCSuite\\IEDriverServer.exe"); your miss take is webdriver.chrome.driver but, we have ...READ MORE

answered Apr 24, 2019 in Selenium by anonymous
3,953 views
0 votes
1 answer
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,186 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
1,813 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
1,791 views