Selenium 量角器:指向默认conf.js文件的PhpStorm IDE
我试图在Ubuntu上的PhpStorm IDE中运行一个基本的量角器脚本。当我运行conf文件时,它抛出以下错误Selenium 量角器:指向默认conf.js文件的PhpStorm IDE,selenium,protractor,phpstorm,webstorm,Selenium,Protractor,Phpstorm,Webstorm,我试图在Ubuntu上的PhpStorm IDE中运行一个基本的量角器脚本。当我运行conf文件时,它抛出以下错误 Usage: protractor [configFile] [options] configFile defaults to protractor.conf.js The [options] object will override values from the config file. See the reference config for a full list of o
Usage: protractor [configFile] [options]
configFile defaults to protractor.conf.js
The [options] object will override values from the config file.
See the reference config for a full list of options.
Error: Error: more than one config file specified
at /usr/local/lib/node_modules/protractor/built/cli.js:163:15
我无法理解为什么它指向默认的conf文件而不是我指定的文件
这是配置的屏幕截图
c_conf.js
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: [spec.js],
framework : 'jasmine',
capabilities: {
browserName: 'chrome'
}
}
describe('Protractor Framework', function(){
it('Title', function(){
browser.get('https://www.google.com');
})
})
spec.js
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: [spec.js],
framework : 'jasmine',
capabilities: {
browserName: 'chrome'
}
}
describe('Protractor Framework', function(){
it('Title', function(){
browser.get('https://www.google.com');
})
})
您设置错误,请参考以下屏幕截图中的设置:
用于指定nodejs二进制文件节点解释器
是可选的,用于指定节点二进制文件的参数节点参数
必须是量角器\build的JavaScript文件
cli.js
用于指定在cmd行中键入的conf文件和参数应用程序参数
是可选的环境变量
这样怎么样:1)2)我正在使用ubuntu。