我試着用Selenium 3.5.3 GeckoDriver 0.19 Firefox 55
但得到下面的異常:哪個firefox版本兼容selenium 3.5.0?
Error: org.openqa.selenium.WebDriverException: browser name not boolean
代碼:
DesiredCapabilities cap = DesiredCapabilities.firefox();
WebDriver driver = null;
System.setProperty("webdriver.gecko.driver", "<path to gecko>\geckodriver.exe");
cap.setBrowserName("firefox");
URL sURL= null;
cap.setCapability("firefox_binary", "<FIREFOX_PATH>"));
//Grid
sURL = new URL("http://localhost:5555/wd/hub");
driver = new RemoteWebDriver(sURL, cap);
也看到這個線程https://seleniumhq.wordpress.com/2017/08/09/firefox-55-and-selenium-ide/硒IDE將不能再在Firefox 55
支持。硒罐是否仍會支持?
硒3.5.2與上述組合兼容。 – Sudeepthi
您發現的博客文章引用了[Selenium IDE for Firefox](https://a9t9.com/howto/getseleniumide)問題* only *。 Webdriver不受此問題的影響。 –
@Sudeepthi與Selenium 3.5.2,firefox 55,gecko 0.19相同的異常:相同的異常錯誤:org.openqa.selenium.InvalidArgumentException:browserName不是布爾型 –