Reputation: 33
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
Reputation: 33
resolved by setting the capability in botium.json.
"goog:chromeOptions": {
"args": ["--start-maximized", "--start-fullscreen"]
}
Upvotes: 1