Skip to content

Instantly share code, notes, and snippets.

@jamesmcallister
Created July 27, 2017 20:21
Show Gist options
  • Save jamesmcallister/8b3fb4e65a7c4e36684965c8cafc7ac3 to your computer and use it in GitHub Desktop.
Save jamesmcallister/8b3fb4e65a7c4e36684965c8cafc7ac3 to your computer and use it in GitHub Desktop.
Webdriverio headless chrome
capabilities: [
{
// maxInstances can get overwritten per capability. So if you have an in-house Selenium
// grid with only 5 firefox instances available you can make sure that not more than
// 5 instances get started at a time.
maxInstances: 10,
//
browserName: 'chrome',
chromeOptions: {
args: ['headless']
}
}
],
@jamesmcallister
Copy link
Author

Simple as adding 'chromeOptions' in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment