wdio/selenium-standalone-service 返回 getMacChromiumEdgeDriverArchitecture 错误

wdio/selenium-standalone-service returning getMacChromiumEdgeDriverArchitecture error

我仍在学习如何使用 WebDriverIO,它也是 MacOS 的新手,我正在尝试执行我所做的规范文件,但在执行“npm 运行 期间我总是收到此错误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 edge 驱动程序的架构有关。我正在尝试 运行 在配备 Apple M1 芯片的 MacBookPro 上使用它。

有什么线索吗?

提前致谢!

嗯,问题解决了。我需要将 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