performance - How to setup Selenium webdriver in Eclipse and Linux -
i try code (web driver every thing , update java also). try code in windows , it's working fine, linux can't. how can fix error?
import java.util.concurrent.timeunit; import org.openqa.selenium.webdriver; import org.openqa.selenium.firefox.firefoxdriver; public class openfire { public static void main(string[] args) { webdriver driver = new firefoxdriver(); driver.manage().window().maximize(); driver.manage().timeouts().implicitlywait(25, timeunit.seconds); driver.get("https://www.easybooking.lk/"); } }
the output is:
exception in thread "main" java.lang.illegalstateexception: path driver executable must set webdriver.gecko.driver system property; more information, see https://github.com/mozilla/geckodriver. latest version can downloaded https://github.com/mozilla/geckodriver/releases @ com.google.common.base.preconditions.checkstate(preconditions.java:738) @ org.openqa.selenium.remote.service.driverservice.findexecutable(driverservice.java:124) @ org.openqa.selenium.firefox.geckodriverservice.access$100(geckodriverservice.java:41) @ org.openqa.selenium.firefox.geckodriverservice$builder.finddefaultexecutable(geckodriverservice.java:115) @ org.openqa.selenium.remote.service.driverservice$builder.build(driverservice.java:330) @ org.openqa.selenium.firefox.firefoxdriver.toexecutor(firefoxdriver.java:207) @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:108) @ org.openqa.selenium.firefox.firefoxdriver.<init>(firefoxdriver.java:104) @ openfire.main(openfire.java:11)
how can fix error?
Comments
Post a Comment