错误:enter image description here
代码:
"webdriver" : {
"start_process": true,
"server_path": "./drivers/chromedriver.exe",
"port": 9515,
},
您可能想要two different sets of test settings,一个用于Windows,另一个用于Linux。否则configure Travis CI to use Windows。
我不确定Travis CI实例中默认安装了哪个版本的Chrome(或Chromium?);要获得最新的稳定版本,请将其添加到您的.travis.yml
:
addons:
chrome: stable
请参见https://docs.travis-ci.com/user/chrome然后,对于夜表配置,应该为
"server_path": "node_modules/.bin/chromedriver",
那是enough to get me working today,但恐怕还有一个我还没有想到的问题:travis CI不允许您指定要安装的Chrome的特定版本,但是chromedriver版本与Chrome版本。我将chromedriver版本设置为*
,以始终安装最新版本,但是我感觉我当前的配置最终将失败,因此,如果有人发现该问题,请在此处发表评论。