我已经启动了服务器webdriver-manager start,但是当我尝试运行量角器时出现此错误:
Using the selenium server at http://127.0.0.1:4444/wd/hub
[launcher] Running 1 instances of WebDriver
ERROR - Unable to start a WebDriver session.
C:\...\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:113
var template = new Error(this.message);
^
UnknownError: unknown error: cannot find Chrome binary
Run Code Online (Sandbox Code Playgroud)
我的配置文件如下所示:
exports.config = {
specs: [
'test/*.js'
],
capabilities: {
'browserName': 'chrome'
},
seleniumAddress: 'http://127.0.0.1:4444/wd/hub'
};
Run Code Online (Sandbox Code Playgroud)
我也试过指向功能对象中的二进制文件,以及添加chromeDriver和seleniumServerJar键无济于事.有任何想法吗?