gpt4 book ai didi

selenium - Protractor >>错误: spawn Unknown system error -86 >> From: Task: WebDriver. createSession()

转载 作者:行者123 更新时间:2023-12-03 10:06:21 24 4
gpt4 key购买 nike

因此,我一直在 Protractor 中进行我的Angular应用程序的端到端测试。只要我一直在开发测试,它就一直在工作。然后最近它给了我以下错误。最初,我以为这与Chrome和Chromedriver不兼容有关。因此,我去更新了对我不起作用的chrome和chromedriver。然后,我尝试安装Chrome版本88及其对应的chromedriver,但仍然产生错误。所以我想知道我的开发环境可能有什么问题。

[16:55:10] I/config_source - curl -o/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/protractor/node_modules/webdriver-manager/selenium/chrome-response.xml https://chromedriver.storage.googleapis.com/
ℹ 「wdm」: Compiled successfully.
[16:55:10] I/update - chromedriver: file exists /Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_87.0.4280.88.zip
[16:55:10] I/update - chromedriver: unzipping chromedriver_87.0.4280.88.zip
[16:55:10] I/update - chromedriver: setting permissions to 0755 for /Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_87.0.4280.88
[16:55:10] I/update - chromedriver: chromedriver_87.0.4280.88 up to date
[16:55:11] I/launcher - Running 1 instances of WebDriver
[16:55:11] I/direct - Using ChromeDriver directly...
[16:55:12] E/launcher - spawn Unknown system error -86
[16:55:12] E/launcher - Error: spawn Unknown system error -86
at ChildProcess.spawn (internal/child_process.js:407:11)
at Object.spawn (child_process.js:548:9)
at exec (/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/selenium-webdriver/io/exec.js:116:27)
at /Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/selenium-webdriver/remote/index.js:219:25
at processTicksAndRejections (internal/process/task_queues.js:97:5)
From: Task: WebDriver.createSession()
at Function.createSession (/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
at Function.createSession (/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/selenium-webdriver/chrome.js:761:15)
at Direct.getNewDriver (/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/protractor/built/driverProviders/direct.js:77:33)
at Runner.createBrowser (/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/protractor/built/runner.js:195:43)
at /Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/protractor/built/runner.js:339:29
at _fulfilled (/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/q/q.js:834:54)
at /Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/q/q.js:863:30
at Promise.promise.promiseDispatch (/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/q/q.js:796:13)
at /Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/q/q.js:556:49
at runSingle (/Users/gregoryrothstein/dev/sso_service/aicure-dashboard/node_modules/q/q.js:137:13)
[16:55:12] E/launcher - Process exited with error code 199
An unexpected error occurred: undefined
版本:
Google Chrome:版本88.0.4324.77(正式版本)测试版(x86_64)
Protractor :@ 7.0.0
webdriver-manager:@ 12.1.7

最佳答案

解决了webdriver-manager@12.1.8确保在全局和本地安装

关于selenium - Protractor >>错误: spawn Unknown system error -86 >> From: Task: WebDriver. createSession(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65637258/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com