我正在使用 webdriverIO 進行一些自動化測驗,并且最近從“selenium-standalone”服務遷移到默認的 wdio devtools 協議。
- wdio v.7.16.12
- 火狐 v.95.0.2
從那時起,我無法開始使用 firefox 瀏覽器進行測驗:
INFO @wdio/cli:launcher: Run onPrepare hook
INFO @wdio/cli:launcher: Run onWorkerStart hook
INFO @wdio/local-runner: Start worker 0-0 with arg: run,wdio.conf.js
INFO @wdio/local-runner: Run worker command: run
...
INFO devtools:puppeteer: Initiate new session using the DevTools protocol
ERROR @wdio/runner: Error: Couldn't find executable for browser
...
INFO @wdio/cli:launcher: Run onComplete hook
我嘗試了使用“wdio:devtoolsOptions”和“moz:firefoxOptions”的不同選項組合。
另外檢查是否可以幫助dumpio: true和'moz:debuggerAddress': true選項。
我還嘗試用product替換browserName并將binary和executablePath添加到功能中。
將 binary: 'path.to.firefox'傳遞給 'moz:firefoxOptions' 選項時,錯誤訊息更改為:
ERROR @wdio/runner: Error: Only Nightly release channel is supported in Devtools/Puppeteer for Firefox. Refer to the following issue:
...
有什么想法可以在 webdriverIO 中修復(無需單獨安裝 puppeteer 或 puppeteer-firefox)?
謝謝!
uj5u.com熱心網友回復:
似乎我把想要的東西當真了。
wdio devtools:puppeteer 仍然只適用于 Firefox Nightly – https://github.com/webdriverio/webdriverio/discussions/7916
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/416193.html
標籤:
