I need chrome to run with disable-web-security flag for my UI tests. How can I inject any commands using wdio.config file (http://webdriver.io/).
capabilities: [{
browserName: 'chrome'
}]
I need chrome to run with disable-web-security flag for my UI tests. How can I inject any commands using wdio.config file (http://webdriver.io/).
capabilities: [{
browserName: 'chrome'
}]
If you want to disable javascript in the browser using webdriverio, in your wdio.config you'll need
You can set any chrome flags within the desired capabilities using chromeOptions
Check out the chromedriver docs for more information on the chromeOptions object.
This ended up being the correct syntax, thanks Christian!