1

Following is my code snippet :

public class FindAllElementsFromTable {
 WebDriver driver;
 @BeforeClass
 public void beforeClass(){
 System.setProperty("Webdriver.chrome.driver","C:\\Selenium Drivers\\chromedriver.exe");
 driver = new ChromeDriver();
 }

and some tests after this.

When executed,getting above exception. I tried with forward slash i.e. "C:/Selenium Drivers/chromedriver.exe" as well, but it makes no difference. I checked other answers, but I haven't made any of those mistakes like initialising the chromedriver twice/wrong place/setting property after WebDriver initialization/wrong driver name etc. Can you help me understanding the exact issue?

Krishnan Mahadevan
14.8k6 gold badges38 silver badges70 bronze badges
asked Feb 20, 2018 at 19:27
1

1 Answer 1

1

You have a typo in your setProperty line.

It should be webdriver not Webdriver

System.setProperty("webdriver.chrome.driver","C:\\Selenium Drivers\\chromedriver.exe");
undetected Selenium
194k44 gold badges304 silver badges386 bronze badges
answered Feb 20, 2018 at 19:51
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.