Javascript 未加载Firefox(32最新版本)浏览器的量角器
因此,出于某种原因,当我运行Gragrator时,Firefox(32最新版本)只会打开一个空浏览器,而不会导航到baseURL。我编写的测试在chrome上运行良好,但在firefox上则不行。这可能与conf文件的设置方式有关。有什么想法吗 配置文件:Javascript 未加载Firefox(32最新版本)浏览器的量角器,javascript,firefox,jasmine,protractor,end-to-end,Javascript,Firefox,Jasmine,Protractor,End To End,因此,出于某种原因,当我运行Gragrator时,Firefox(32最新版本)只会打开一个空浏览器,而不会导航到baseURL。我编写的测试在chrome上运行良好,但在firefox上则不行。这可能与conf文件的设置方式有关。有什么想法吗 配置文件: exports.config = { allScriptsTimeout: 11000, specs: [ 'e2e/*.js' ], multiCapabilities: [
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
}
};
Firefox32因selenium Thank man而崩溃。这确实是问题所在。我刚刚降级,它似乎至少运行了测试(尽管有一些点击问题)。你知道为什么我的测试在chrome中通过,但显示如下内容:Stacktrace:ElementNotVisibleError:Element当前不可见,因此可能无法与firefox交互吗?元素似乎没有被正确单击。您应该为该问题打开一个单独的问题,请包括一些html和测试代码;)谢谢,不过我想出来了。Firefox不喜欢我点击下拉菜单的方式。因此,我将其更改为element(by.linkText(“”)).click()这也可能有助于指出grunt量角器runner此时已过时(),因此即使您有最新版本的量角器和webdriver manager,您也会遇到同样的问题。我现在所做的是跳过使用grunt量角器runner,我只是直接使用量角器。
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:........