Travis CI:Nightwatch js:尝试创建ChromeDriver进程时出错:生成EACCES。在本地完美运行

问题描述 投票:1回答:1

错误:enter image description here

代码:

"webdriver" : {
    "start_process": true,
    "server_path": "./drivers/chromedriver.exe",
    "port": 9515,
  },
continuous-integration travis-ci nightwatch.js
1个回答
0
投票
对于初学者,您似乎正在尝试在Linux Travis CI实例上运行Windows chromedriver。

您可能想要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版本设置为*,以始终安装最新版本,但是我感觉我当前的配置最终将失败,因此,如果有人发现该问题,请在此处发表评论。
© www.soinside.com 2019 - 2024. All rights reserved.