Javascript Firefox在量角器上启动但未运行
我为我的新手感到抱歉,但我需要你的帮助来了解量角器和壁虎河 我正在使用带有Webstorm的量角器作为IDE。我想在Firefox上运行我的e2e测试,但这个测试正在启动,但没有运行我的测试。 Firefox已打开,但始终是一个空白页。 我尝试运行webdriver manager更新和启动,但未成功。 为了执行,我运行ng serve来运行我的本地项目,并使用webstorm中的运行工具exec grandor grandor.conf.js 我使用的是量角器v5.2.0、geckodriver v0.19.1、Firefox v52.5.2。 这是我的量角器.conf.js:Javascript Firefox在量角器上启动但未运行,javascript,firefox,protractor,geckodriver,Javascript,Firefox,Protractor,Geckodriver,我为我的新手感到抱歉,但我需要你的帮助来了解量角器和壁虎河 我正在使用带有Webstorm的量角器作为IDE。我想在Firefox上运行我的e2e测试,但这个测试正在启动,但没有运行我的测试。 Firefox已打开,但始终是一个空白页。 我尝试运行webdriver manager更新和启动,但未成功。 为了执行,我运行ng serve来运行我的本地项目,并使用webstorm中的运行工具exec grandor grandor.conf.js 我使用的是量角器v5.2.0、geckodrive
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
localSeleniumStandaloneOpts: {
jvmArgs: ["-Dwebdriver.gecko.driver=C:/Users/mnotheber/AppData/Roaming/npm/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.19.1.exe"]
},
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
multiCapabilities: [
{'browserName': 'firefox', 'moz:firefoxOptions': {'args': ['--safe-mode']} }
],
directConnect: false,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function() {}
},
onPrepare() {
require('ts-node').register({
project: 'e2e/tsconfig.json'
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
};
我需要您的帮助,如果您想了解更多信息,请询问我。尝试使用webdriver manager更新更新您的webdriver manager模块。
如果现在仍在工作,那么您也可以尝试conf文件中的directConnect:true选项。尝试使用webdriver-manager更新您的webdriver-manager模块。
如果现在仍在工作,那么您也可以尝试conf文件中的directConnect:true选项。尝试将Firefox更新到最新的v57,因为gecko驱动程序0.19.0+只支持Firefox 55+
尝试将Firefox更新至最新v57,因为gecko驱动程序0.19.0+仅支持Firefox 55+
尝试directConnect:true而不是独立选项。请尝试并让我们知道,它应该可以工作。@tyaga001对我不起作用。try directConnect:true而不是standalone选项。请尝试并让我们知道,它应该有效。@tyaga001不适用于我,尽管我尝试了两者,但没有更好的效果。这很奇怪,因为Firefox启动了,但没有运行我的e2e测试…我尝试了这两种测试,但没有更好的。这很奇怪,因为Firefox启动了,但没有运行我的e2e测试。。。