Skip to content

Instantly share code, notes, and snippets.

@disintegrator
Created June 9, 2017 04:13
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save disintegrator/ff6e9341860e9b121099c71bc9381bd6 to your computer and use it in GitHub Desktop.
Save disintegrator/ff6e9341860e9b121099c71bc9381bd6 to your computer and use it in GitHub Desktop.
Run Chrome Headless with WebdriverIO and selenium-standalone
exports.config = {
capabilities: [
{
browserName: 'chrome',
chromeOptions: {
args: ['headless', 'disable-gpu'],
},
},
],
services: ['selenium-standalone'],
seleniumInstallArgs: {
logger: console.log,
drivers: {
chrome: {
version: '2.29',
arch: process.arch,
baseURL: 'https://chromedriver.storage.googleapis.com',
},
},
},
seleniumArgs: {
logger: console.log,
drivers: {
chrome: {
version: '2.29',
},
},
},
/* ... all your other config ... */
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment