Error: "Command "maximizeWindow" is not yet implemented" using webdriverIO v6
Error: "Command "maximizeWindow" is not yet implemented" using webdriverIO v6
我在 webdriverIOv5 上有一个项目,我试图将其升级到版本 6。
但是当调用 browser.maximizeWindow()
时,我得到这个错误:
ERROR @wdio/sync: Error: Command "maximizeWindow" is not yet implemented
这是我的演示项目https://github.com/mareru/webdriverIO-shop-demo。
有人知道如何解决这个问题吗?
我确实在 gitter 上找到了一些类似的参考资料,但根据他们的说法,这应该有效。
我不明白我做错了什么。
谢谢!
maximizeWindow
在 chromedriver 从 json 切换到 W3C 协议时被移除,并在几个版本前重新实现。
确保使用最新版本的 chromedriver。您必须根据 https://webdriver.io/docs/selenium-standalone-service.html#configuration in your config https://github.com/mareru/webdriverIO-shop-demo/blob/master/src/wdio.conf.ts#L95
配置 selenium-standalone
服务
已在我自己的示例存储库中验证 https://gitlab.com/bar_foo/wdio-cucumber-typescript/-/blob/master/config/wdio.CHROME.conf.ts
我在 webdriverIOv5 上有一个项目,我试图将其升级到版本 6。
但是当调用 browser.maximizeWindow()
时,我得到这个错误:
ERROR @wdio/sync: Error: Command "maximizeWindow" is not yet implemented
这是我的演示项目https://github.com/mareru/webdriverIO-shop-demo。
有人知道如何解决这个问题吗?
我确实在 gitter 上找到了一些类似的参考资料,但根据他们的说法,这应该有效。
我不明白我做错了什么。
谢谢!
maximizeWindow
在 chromedriver 从 json 切换到 W3C 协议时被移除,并在几个版本前重新实现。
确保使用最新版本的 chromedriver。您必须根据 https://webdriver.io/docs/selenium-standalone-service.html#configuration in your config https://github.com/mareru/webdriverIO-shop-demo/blob/master/src/wdio.conf.ts#L95
配置selenium-standalone
服务
已在我自己的示例存储库中验证 https://gitlab.com/bar_foo/wdio-cucumber-typescript/-/blob/master/config/wdio.CHROME.conf.ts