针对夜间Firefox构建运行Protractor [英] Running Protractor against a nightly Firefox build
问题描述
当我尝试针对
此处是我的配置的相关部分:
exports.config = {
baseUrl:'http:// localhost: 8080 / dev / src /',
specs:['dev / test / e2e / ** / dashboard.spec.js'],
directConnect:true,
能力:{
browserName:firefox,
firefox_binary:/ Applications / FirefoxNightly.app/Contents/MacOS/firefox-bin,
},
allScriptsTimeout:110000,
getPageTimeout:100000,
framework:'jasmine2',
jasmineNodeOpts:{
isVerbose:false,
showColors:true,
i ncludeStackTrace:false,
defaultTimeoutInterval:400000
},
};
有一个相关问题,但没有提供解决方案。
我发现的可能的解决方法之一可能是移动 WebDriver
xpi扩展名稳定的firefox安装(或不同的源代码)到Nightly firefox配置文件的extensions目录,但我不知道该怎么做。
我是还发现了一些关于使用Marionette驱动程序来测试每晚Firefox构建,但我没有找到任何关于它与量角器
的关系的指南。
使用:
- 目前最新
量角器
3.0.0 - Firefox Nightly为46.0.a1
- Mac OS X El Capitan
尝试使用 directConnect
而没有 - 同样的行为。
显然这是一个问题使用Firefox 46 。默认的FirefoxDriver不再适用于此版本 - 您需要使用木偶司机。我还找到了快速操作方法使用 Selenium
的新驱动程序。
我也遇到了同样的问题。我们默认使用 directConnect
运行我们的测试,所以我还没弄明白如何让量角器使用 Marionette
而不是 FirefoxDriver
。
如果你有量角器连接到 Selenium
,那么你应该能够按照可用的指南来制作 Selenium
使用新的驱动程序 - 这不应该影响量角器与的关系Selenium
。
更新:查看使用问题使用 directConnect
的最新版本的Firefox,我发现无法指示量角器使用 Marionette
驱动程序。我为此开了一个与量角器团队的问题。
When I try to run Protractor tests against a "Nightly" Firefox build, firefox window hangs indefinitely:
Here is the relevant part of my configuration:
exports.config = {
baseUrl: 'http://localhost:8080/dev/src/',
specs: ['dev/test/e2e/**/dashboard.spec.js'],
directConnect: true,
capabilities: {
browserName: "firefox",
firefox_binary: "/Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin",
},
allScriptsTimeout: 110000,
getPageTimeout: 100000,
framework: 'jasmine2',
jasmineNodeOpts: {
isVerbose: false,
showColors: true,
includeStackTrace: false,
defaultTimeoutInterval: 400000
},
};
There was a related issue with no solution provided.
One of the possible workarounds I've found might be to move the WebDriver
xpi extension from the stable firefox installation (or a different source) to the "extensions" directory of the Nightly firefox profile, but I'm not sure how to do it.
I've also found something about using "Marionette" driver to test a nightly Firefox build, but I haven't found any guidelines on it's relationship to Protractor
.
Using:
- currently latest
Protractor
3.0.0 - Firefox Nightly is 46.0.a1
- Mac OS X El Capitan
Tried with directConnect
and without - same behavior.
Apparently this is an issue with Firefox 46. The default FirefoxDriver no longer works with this version - you need to be using the Marionette driver. I also found a quick how-to on using the new driver with Selenium
.
I'm facing the same problem as well. We run our tests with directConnect
by default, so I'm yet to figure out how to get protractor to use Marionette
instead of FirefoxDriver
.
If you're having protractor connect to Selenium
, then you should be able to follow the guides available to make Selenium
use the new driver - that shouldn't affect protractor's relationship with Selenium
.
Update: Looking into the problem of using the latest versions of Firefox with directConnect
, I found no way of instructing protractor to use the Marionette
driver. I've opened an issue with the protractor team for this.
这篇关于针对夜间Firefox构建运行Protractor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!