我正在使用 wdio 6 进行一些测试(在将其升级到 7 的过程中)并且我在一个非常简单的测试中收到了这个错误
it('Renders unit list', () => {
$('.unit-list .bookable-unit-details:first-child').waitForDisplayed();
});
在运行测试时,我触发了很多次:
[0-0] 2021-07-14T20:20:56.077Z ERROR webdriver: Request failed with status 500 due to unknown command: POST /session/<HASH>/execute/sync
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '208-52-164-61', ip: '208.52.164.61', os.name: 'windows', os.arch: 'x86', os.version: '6.2', java.version: '1.8.0_181'
Driver info: driver.version: unknown
最后:
[chrome 91.0.4472.106 windows #0-0] Error: waitUntil condition failed with the following reason: POST /session/<HASH>/execute/sync
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '208-52-164-61', ip: '208.52.164.61', os.name: 'windows', os.arch: 'x86', os.version: '6.2', java.version: '1.8.0_181'
Driver info: driver.version: unknown
有谁之前经历过这个吗?解决方案是什么?
编辑
我已将 wdio 升级到可用的最新版本,但我仍然遇到此问题。
我在 wdio 的 github 上提交了一个问题:https ://github.com/webdriverio/webdriverio/issues/7145