运行 `protractor` 使用 chrome 时出现错误

getting error when run the `protractor` using chrome

我想 运行 使用 chrome protractor 但我收到错误消息:

protractor config.js
[15:54:58] I/launcher - Running 1 instances of WebDriver
[15:54:59] I/local - Starting selenium standalone server...
[15:55:01] I/local - Selenium standalone server started at http://172.18.32.112:51073/wd/hub
[15:56:06] E/launcher - chrome not reachable
  (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.10240 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.51 seconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'INCHCMLP01756', ip: '172.18.32.112', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_66'
Driver info: driver.version: ChromeDriver

如何解决这个问题? 这是我的配置文件:

exports.config = {
    framework : "jasmine",
    capabilities : {
        browserName : "chrome"
    },
    specs : ["spec.js"]
}

提前致谢。

你可以试试这个吗?它适用于 chrome 版本 58。

exports.config = {
    framework : "jasmine",
    capabilities : {
        browserName : "chrome", 
    },
    directConnect: true,
    chromeDriver: "C:/Path/to/chromedriver.exe",
    specs : ["spec.js"]
}