ace
ace

Reputation: 33

Botium and WebdriverIO:-Not able to maximizeWindow() [chrome browser]

Trying to invoke a script in WEBDRIVERIO_OPENBOT capability in botium.json

Script as follows:

module.exports = async (container, browser) => {
    await browser.url(`https://www.orangehrm.com/`);
    await browser.maximizeWindow();
    await browser.pause(5000)
}

Getting following error:

Error: WebDriver error on startup: Command "maximizeWindow" is not yet implemented

Upvotes: 0

Views: 568

Answers (1)

ace
ace

Reputation: 33

resolved by setting the capability in botium.json.

 "goog:chromeOptions": {
                            "args": ["--start-maximized", "--start-fullscreen"]
                            }

Upvotes: 1

Related Questions