与Firefox(32最新)的量角器浏览器不加载 [英] Protractor with Firefox (32 latest) browser not loading
问题描述
配置文件:
exports.config = {
allScriptsTimeout:11000,
规格:[
'E2E / * JS'
]中,
multiCapabilities:[
{
'browserName':'firefox'
},
{
'browserName':'chrome'
}
],
chromeOnly:假,
chromeDriver: 'E2E / chromedriver /',
的baseUrl: 'HTTP://本地主机:9000 /',
framework:'jasmine',
jasmineNodeOpts:{
defaultTimeoutInterval:30000
}
};
火狐32与硒<折断; = 2.42。 2
更新 Selenium 2.43已经出来了!
需要 selenium 2.43 或更新的版本。或将Firefox降级到版本31或更低。
问题: https://code.google.com/p/selenium/issues/detail?id=7642
FYI输出可能如下所示:
使用selenium服务器:http:// localhost:4444 / wd / hub
/home/username/e2e/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:109
变种模板=新的错误(this.message);
^
UnknownError:无法在45000 ms后连接到端口7055上的主机127.0.0.1。 Firefox的控制台输出:
003407891246748webdriver-profile/extensions/fxdriver@googlecode.com
1409877425492 addons.xpi DEBUG忽略文件项的名称不是有效的附加ID:/ tmp目录/ anonymous7362003407891246748webdriver瞩目/扩展/ webdriver的分段
1409877425492个addons.xpi DEBUG checkForChanges
1409877425502 addons.xpi DEBUG指南状态JSON不同:........
So for some reason, when I run protractor, Firefox (32 latest) just opens with an empty browser and doesn't navigate to the baseURL. The tests I have written work fine with chrome, but not with firefox. It probably has something to do with the way the conf file is set up. Any ideas?
Conf file:
exports.config = {
allScriptsTimeout: 11000,
specs: [
'e2e/*.js'
],
multiCapabilities: [
{
'browserName': 'firefox'
},
{
'browserName': 'chrome'
}
],
chromeOnly: false,
chromeDriver: 'e2e/chromedriver/',
baseUrl: 'http://localhost:9000/',
framework: 'jasmine',
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};
Firefox 32 is broken with selenium <= 2.42.2
UPDATE Selenium 2.43 is out!
Need selenium 2.43 or newer version. Or downgrade Firefox back to version 31 or less.
Issue: https://code.google.com/p/selenium/issues/detail?id=7642
FYI output might look like this:
Using the selenium server at: http://localhost:4444/wd/hub
/home/username/e2e/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:109
var template = new Error(this.message);
^
UnknownError: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
003407891246748webdriver-profile/extensions/fxdriver@googlecode.com
1409877425492 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous7362003407891246748webdriver-profile/extensions/webdriver-staging
1409877425492 addons.xpi DEBUG checkForChanges
1409877425502 addons.xpi DEBUG Directory state JSON differs:........
这篇关于与Firefox(32最新)的量角器浏览器不加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!