【问题标题】:which firefox version is compatible with selenium 3.5.0?哪个 Firefox 版本与 selenium 3.5.0 兼容?
【发布时间】: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


【解决方案1】:

从 Firefox 55 开始,Selenium IDE no long works 对测试人员社区来说是个坏消息。现在您有 2 个选择:

1-尝试使用firefox的previous version(临时解决方案)

2- 使用Selenium IDE alternatives(强烈推荐)

【讨论】:

    【解决方案2】:

    我推荐你使用 Firefox 54.0 和 geckodriver v0.18.0。

    实际上这个链接是关于 Selenium IDE 的。您也可以使用 Firefox 55。

    【讨论】:

    • 用 Firefox 54.0 和 gecko v0.18.0 尝试过。相同的异常错误:org.openqa.selenium.InvalidArgumentException:browserName 不是布尔构建信息:版本:'3.5.2',修订:' 10229a9020',时间:'2017-08-21T17:54:21.164Z'
    • 你可以粘贴吗?
    猜你喜欢
    • 2016-08-13
    • 2016-01-06
    • 2018-04-14
    • 1970-01-01
    • 2023-03-29
    • 1970-01-01
    • 2019-09-30
    • 1970-01-01
    • 2019-04-09
    相关资源
    最近更新 更多