【发布时间】:2016-06-30 09:38:18
【问题描述】:
尝试使用 firefox 47 进行测试(angularjs 应用程序上的量角器)但结果适得其反。在 SO'ing 之后尝试降级到 46.0.1,仍然没有。有人找到当前的解决方案吗?看起来解决方案不断变化。现在我们需要一个新的。 (到目前为止,测试使用 chrome 运行)
这是我的错误;
C:\this\is\my\folder\for\protractor\tests\e2e>protractor conf.js
[11:02:12] I/direct - 直接使用 FirefoxDriver...
[11:02:12] I/launcher - 运行 1 个 WebDriver 实例
C:\Users\dev\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:62
让会话 = flow.execute(function() {
错误:无法在当前系统上找到 Firefox
发生错误(本机)
conf.js
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
'browserName': 'firefox'
},
directConnect: true,
framework: 'jasmine2',
specs: ['specs/*spec.js'],
};
【问题讨论】:
-
您是否尝试重新安装firefox?
-
我正在使用 firefox 45... 我知道 firefox 47 和 protractor 存在问题,不确定 firefox 46。所以我降级了,也许尝试再降级一个版本?
-
@igniteram1 @Gunderson 尝试了 45 次,现在只有 46 次.. 没有任何效果。我收到
Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:4444 -
使用firefox浏览器时,请备注selenium地址。然后尝试一次。
-
@Gunderson 下载了 45.0.1 并且成功了。现在的问题是使用 Firefox 从 https 安全页面导航。安全警告弹出窗口阻止量角器正常继续
标签: javascript node.js firefox selenium-webdriver protractor