Skip to content

Instantly share code, notes, and snippets.

@imRohan
Last active August 21, 2017 20:12
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 imRohan/106351826fdd8a5e279ea2e53e8455da to your computer and use it in GitHub Desktop.
Save imRohan/106351826fdd8a5e279ea2e53e8455da to your computer and use it in GitHub Desktop.
Nightwatch Config for Gecko and ChromeDriver
{
"src_folders": ["tests"],
"output_folder": "reports",
"selenium" : {
"start_process" : true,
"server_path" : "./node_modules/selenium-server/lib/runner/selenium-server-standalone-3.4.0.jar",
"log_path" : "",
"port" : 4444,
"start_session": true,
"cli_args" : {
"webdriver.chrome.driver" : "./node_modules/chromedriver/lib/chromedriver/chromedriver",
"webdriver.gecko.driver": "./node_modules/geckodriver/bin/geckodriver"
}
},
"test_settings" : {
"default" : {
"launch_url" : "http://0.0.0.0:8080",
"selenium_port": 4444,
"selenium_host": "0.0.0.0",
"silent": true,
"screenshots" : {
"enabled" : false,
"path" : ""
},
"desiredCapabilities": {
"browserName": "firefox",
"marionette": true
}
},
"chrome" : {
"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true,
"chromeOptions": {
"args": ["start-fullscreen", "--no-sandbox"]
}
}
},
"firefox": {
"desiredCapabilities": {
"browserName": "firefox",
"marionette": true,
"javascriptEnabled": true,
"acceptSslCerts": true
}
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment