haf*_*an 4 webdriver errno protractor
我正在尝试在不同的计算机上设置量角器。它与我的另一台计算机使用相同的文件(无法使用,因为 hdisc 损坏)。
它在我的另一台计算机上运行良好,但是当我尝试在这台计算机上运行量角器时出现错误“进程退出,错误代码 100”。
我尝试删除节点模块,清理缓存并再次执行 npm install 以安装依赖项。它有助于我之前的问题(无法运行 webdriver),但现在导致我出现这个问题。
[14:44:09] I/launcher - Running 1 instances of WebDriver
[14:44:09] I/local - Starting selenium standalone server...
[14:44:11] E/launcher - Error: Error: Server terminated early with status 1
at earlyTermination.catch.e (C:\Users\PMO\Documents\DG\Jasmine\node_modules\selenium-webdriver\remote\index.js:252:52)
at process._tickCallback (internal/process/next_tick.js:68:7)
[14:44:11] E/launcher - Process exited with error code 100
npm ERR! code ELIFECYCLE
npm ERR! errno 100
npm ERR! ProtractorTutorial@ protractor: `protractor conf.js`
npm ERR! Exit status 100
npm ERR!
npm ERR! Failed at the protractor@ protractor script.
Run Code Online (Sandbox Code Playgroud)
我当前的 chrome 版本是:74.0.3729.131 Webdriver 版本:chromedriver_74.0.3729.6.exe 操作系统:Windows 10。
请告诉我如何解决这个问题。或者是否有任何特定版本的 chrome 和 webdriver 可以工作?
小智 8
用directConnect=true你的config。如果您已经在使用它,则问题出在 webdriver 上。
尝试从您的项目位置运行以下命令
webdriver-manager clean
node node_modules/protractor/bin/webdriver-manager update --standalone --versions.standalone=3.8.0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14240 次 |
| 最近记录: |