我试着用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不是布尔型 –