Skip to content

Instantly share code, notes, and snippets.

@waltir
Last active May 3, 2019 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waltir/c5ca2a9d68e0a4a07629592c8152916e to your computer and use it in GitHub Desktop.
Save waltir/c5ca2a9d68e0a4a07629592c8152916e to your computer and use it in GitHub Desktop.
how to setup a headless environment for nightwatch.js
// The environment below is named 'headless' and is located in our nightwatch.conf.js file.
"headless": {
"desiredCapabilities": {
"chromeOptions": {
"args": [
"headless", // This is the line that tells nightwatch to run in a headless mode
],
},
"browserName": "chrome",
"javascriptEnabled": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment