再次超时创造新FirefoxDriver与Firefox 43及以上 [英] Again timeout creating new FirefoxDriver with Firefox 43 and above
问题描述
使用下面的异常硒最新webdriver的v 2.50.00我正在(再次):
With latest Selenium WebDriver v 2.50.00 I am getting (again) following exception:
无法在45000毫秒启动插座。试图连接到
以下地址:127.0.0.1:7055
Failed to start up socket within 45000 ms. Attempted to connect to the following addresses: 127.0.0.1:7055
执行:
driver = new FirefoxDriver(new FirefoxBinary(), firefoxProfile, pageLoadTimeout);
这发生的与版本43和Firefox 高。我已经降级Firefox以39节有它的工作原理确定。
This happens with version 43 and higher of Firefox. I have downgraded Firefox to v. 39 and there it works OK.
看来,这个问题与硒和Firefox的各种版本几次发生过,请参阅这里或的这里。
It seems that this issue happened before couple of times with various versions of Selenium and Firefox, see here or here.
本或降级Firefox和等待硒的webdriver的新版本的任何解决办法是唯一的出路?
Any workaround for this or downgrading Firefox and waiting for a new version of Selenium WebDriver is the only way?
推荐答案
是的,这是错误,这仍然会b。您需要设置首选项来解决的最新版本$ b $为 xpinstall.signatures.required,假
。
Yes, It is bug which still going to resolve for latest versions
You need set the Preferences as xpinstall.signatures.required", false
.
下面的代码为我工作,但它是在Java中,你的想法,你在哪里需要修改
Below code is working for me but it is in java. you get the idea where you need to change
WebDriver driver = null;
final FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("xpinstall.signatures.required", false);
driver = new FirefoxDriver(firefoxProfile);
driver.manage().window().maximize();
driver.get("https://www.google.co.in/");
希望它会帮助你:)
Hope it will help you :)
这篇关于再次超时创造新FirefoxDriver与Firefox 43及以上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!