I am a beginner to testing. I want to launch Firefox browser. Can anyone explain me the error of below code?
package Script;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class TestEbay_login {
public static void main (String []arStrings) {
System.setProperty("webdriver.gecko.driver", "C:\\Users\\Senani\\Downloads\\Programs\\geckodriver-v0.23.0-win64.exe");
WebDriver driver = new FirefoxDriver();
driver.get("https://www.google.com");
}
}
Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: C:\Users\Senani\Downloads\Programs\geckodriver.exe
geckodriver.exe
. Now you havegeckodriver-v0.23.0-win64.exe
, so as a quick idea you can rename it togeckodriver.exe
and see what happens. – Bence Kaulics Jan 2 '19 at 14:49