【问题标题】:wdio/selenium-standalone-service returning getMacChromiumEdgeDriverArchitecture errorwdio/selenium-standalone-service 返回 getMacChromiumEdgeDriverArchitecture 错误
【发布时间】:2021-11-24 23:32:19
【问题描述】:

我仍在学习如何使用 WebDriverIO,这也是 MacOS 的新手,我正在尝试执行我所做的规范文件,但在执行“npm run test:wdio”期间我总是收到此错误:

> sandbox@2.2.2 test:wdio /Users/vinicius.correia/Desktop/dev/automation/git/node-box/private/sandbox
> wdio

2021-10-04T14:15:35.085Z DEBUG @wdio/sync: Couldn't load fibers package for Node v10 and above

Execution of 1 spec files started at 2021-10-04T14:15:37.529Z

(node:18357) UnhandledPromiseRejectionWarning: Error: Only x64 architecture is available for chroimum edge driver for mac
    at getMacChromiumEdgeDriverArchitecture (/Users/vinicius.correia/Desktop/dev/automation/git/node-box/node_modules/selenium-standalone/lib/compute-download-urls.js:312:11)
    at getChromiumEdgeDriverArchitecture (/Users/vinicius.correia/Desktop/dev/automation/git/node-box/node_modules/selenium-standalone/lib/compute-download-urls.js:290:16)
    at computeDownloadUrls (/Users/vinicius.correia/Desktop/dev/automation/git/node-box/node_modules/selenium-standalone/lib/compute-download-urls.js:107:9)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at install (/Users/vinicius.correia/Desktop/dev/automation/git/node-box/node_modules/selenium-standalone/lib/install.js:91:16)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:18357) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:18357) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

这似乎与 wdio/selenium-standalone-service 正在安装的 chromium 边缘驱动程序的架构有关。我正在尝试在带有 Apple M1 芯片的 MacBookPro 上运行它。

有什么线索吗?

提前致谢!

【问题讨论】:

    标签: javascript macos selenium selenium-chromedriver webdriver-io


    【解决方案1】:

    嗯,问题解决了。我需要将 selenium-standalone-service 更新为 >= 7.1.0 的版本。发行说明:

    v7.1.0
    support Apple M1 for chrome and gecko drivers #558
    prevent selenium process from hanging if spawned programmatically without stdout/stderr handlers
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-02
      • 2021-03-06
      • 2016-01-30
      • 2021-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多