【发布时间】:2017-09-25 10:35:05
【问题描述】:
我尝试使用Selenium 3.5.3 GeckoDriver 0.19 Firefox 55,但遇到异常:
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/ Firefox 55 将不再支持 selenium ide。是否仍支持 selenium jar?
【问题讨论】:
-
Selenium 3.5.2 兼容上述组合。
-
@Sudeepthi 与 Selenium 3.5.2、firefox 55、gecko 0.19 相同的异常:相同的异常错误:org.openqa.selenium.InvalidArgumentException:browserName 不是布尔值
-
@AnuChawla 最好提供一些代码
-
@iamsankalp89 添加了代码
-
让我检查一下。无法设置 remotewebdriver
标签: selenium firefox selenium-webdriver geckodriver