我正在尝试使用Selenium Side Runner从命令行运行Selenium测试套件。当我的配置文件是
capabilities:
browserName: "chrome"
baseUrl: "http://secret-url.gov/"
chromeOnly: false
然后我跑selenium-side-runner '.\secret-name.side'
我得到
info: Running ./secret-name.side
FAIL ./suiteName.test.js
● Test suite failed to run
spawn UNKNOWN
at exec (../../../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/io/exec.js:131:27)
at resolveCommandLineFlags.then.args (../../../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/remote/index.js:218:25)
对于我的两个套房。我已将webdrivers添加到我的PATH中,并且当我在配置文件中将browserName
设置为"firefox"
时,它与firefox兼容。因此,我不确定我在chrome设置上做错了什么,这个错误对你们意味着什么?