Selenium webdriver – The path to the driver executable must be set by the webdriver.gecko.driver system property

I am using selenium webdriver version 3.3.1 to write selenium test cases and following issue was hit while executing: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases at example.NewTest.beforeTest(NewTest.java:22) How to fix: The selenium client… Continue reading Selenium webdriver – The path to the driver executable must be set by the webdriver.gecko.driver system property