使用下面的代码,火狐正在打开,但我有错误org.openqa.selenium.WebDriverException: Timed out waiting 45 seconds for FirefoxFile gecko = new File("resources/geckodriver64.exe");
Firef
因此,在我编译selenium代码并运行file.class之后,我得到了以下错误Error: no display specified
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start<init>(FirefoxDriver.jav
driver.getTitle(); driver.quit();Firefox然后我得到了下面的错误
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java] http://cwiki.apache.org/c