RE: I get error message when I run “First Test Case with Selenium WebDriver”: Exception in thread “main” java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see The latest version can be downloaded from

mogharr Default Asked on September 4, 2016 in Selenium WebDriver.
Add Comment
3 Answers

download the geckodriver.exe  and than add the above code.

Train Answered on September 26, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.