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 in Selenium by Anjali
• 2,930 points
3,053 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 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,130 points
4,969 views
0 votes
1 answer
0 votes
2 answers

Latest Version of Chrome Driver for Selenium Webdriver

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

answered Aug 28 in Selenium by Abha
• 24,980 points
645 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 in Selenium by anonymous
2,364 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,090 points
768 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,130 points
1,011 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,130 points
719 views