【发布时间】:2022-01-11 17:16:20
【问题描述】:
我正在使用 webdriverIO 进行一些自动化测试,并且最近从“selenium-standalone”服务迁移到默认的 wdio devtools 协议。
- wdio v.7.16.12
- firefox 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 选项。
我还尝试将 browserName 替换为 product 并将 binary 和 executablePath 添加到功能中。 p>
当将 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)?
谢谢!
【问题讨论】:
标签: firefox puppeteer chrome-devtools-protocol wdio