Selenium 2.42.2 webdriver是否与Firefox 27.0.1兼容? [英] Is Selenium 2.42.2 webdriver compatible with Firefox 27.0.1?

查看:88
本文介绍了Selenium 2.42.2 webdriver是否与Firefox 27.0.1兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Selenium 2.42.2 webdriver是否与Firefox 27.0.1兼容?如果没有,那么它与哪个Firefox版本兼容?
我使用Selenium 2.42.2 webdriver。我写的测试代码是:

  public class SeleniumIntro {

/ **
* @param args
* /
public static void main(String [] args){

WebDriver driver = new FirefoxDriver();

driver.get(http://www.google.com);
System.out.println(driver.getCurrentUrl()+
+ driver.getPageSource());

driver.close();






当我运行这个时,Firefox启动,然后没有任何反应。我有一个预感到它的兼容性问题。顺便说一句,我已经尝试了最新版本的Firefox也有同样的结果。我可以在这里使用一些帮助或指导。谢谢。

解决方案

请参考CHANGELOG 在这里

Selenium 2.42.0支持Firefox 29,这意味着只有以下支持四种FF版本:


  • Firefox 29,这个Selenium发布时的FF版本


  • Firefox 24,当前的FF ESR版本

  • Firefox 17,


Selenium 2.42.1和Selenium 2.42.2只是提供与Firefox无关的错误修复。



<因此,对于你的问题,不,Selenium 2.42.2不正式支持Firefox 27.0.1。 (这可能不一定意味着Selenium 2.42.2与Firefox 27.0.1不兼容,但我强烈建议您将Firefox升级到29)

Is Selenium 2.42.2 webdriver compatible with Firefox 27.0.1? If not, then which Firefox version is it compatible with? I am using Selenium 2.42.2 webdriver. The test code that I wrote is:

public class SeleniumIntro {

    /**
     * @param args
     */
    public static void main(String[] args) {

        WebDriver driver = new FirefoxDriver();

        driver.get("http://www.google.com");
        System.out.println(driver.getCurrentUrl() + " "
                + driver.getPageSource());

        driver.close();
    }
}

When I run this, Firefox starts and then nothing happens. I have a hunch that its a compatibility issue. BTW, I have tried the latest version of Firefox also but with the same result. I can use some help or guidance here. Thanks.

解决方案

Please refer to the CHANGELOG here:

Selenium 2.42.0 supports to Firefox 29, which means that only the following four FF versions are supported:

  • Firefox 29, the current FF release when this Selenium was released
  • Firefox 28, the previous FF release
  • Firefox 24, the current FF ESR release
  • Firefox 17, the immediately previous ESR release

Selenium 2.42.1 and Selenium 2.42.2 were just providing bugs fixes unrelated to Firefox.

Therefore, to your question, nope, Selenium 2.42.2 doesn't support Firefox 27.0.1 officially. (This may not necessarily mean that Selenium 2.42.2 isn't compatible with Firefox 27.0.1, but I highly recommend you to upgrade your Firefox to 29)

这篇关于Selenium 2.42.2 webdriver是否与Firefox 27.0.1兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆