Reputation: 1316
I have a project on webdriverIOv5 which I have tried to upgrade to version 6.
But when calling browser.maximizeWindow()
, then I get this as an error:
ERROR @wdio/sync: Error: Command "maximizeWindow" is not yet implemented
Here is my demo project https://github.com/mareru/webdriverIO-shop-demo.
Does anybody know how to fix this?
I did find some similar references on gitter but according to them, this should work.
I don't get what am I doing wrong.
Thanks!
Upvotes: 3
Views: 3031
Reputation: 3950
maximizeWindow
was removed when chromedriver switched from json wire to W3C protocol and reimplemented a couple of versions ago.
Make sure to use the latest version of chromedriver. You have to configure selenium-standalone
service according to 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
Verified in my own example repo https://gitlab.com/bar_foo/wdio-cucumber-typescript/-/blob/master/config/wdio.CHROME.conf.ts
Upvotes: 2