Created
March 27, 2015 14:11
-
-
Save lifeisfoo/72d38ff3bf3a1d42260a to your computer and use it in GitHub Desktop.
nightwatch.json configuration file with chrome --disable-web-security
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"src_folders" : ["tests"], | |
"output_folder" : "reports", | |
"custom_commands_path" : "", | |
"custom_assertions_path" : "", | |
"globals_path" : "", | |
"selenium" : { | |
"start_process" : false, | |
"server_path" : "lib/selenium-server-standalone-2.45.0.jar", | |
"host" : "127.0.0.1", | |
"port" : 4444, | |
"cli_args" : { | |
"webdriver.chrome.driver" : "lib/chromedriver" | |
} | |
}, | |
"test_settings" : { | |
"default" : { | |
"launch_url" : "http://localhost", | |
"selenium_port" : 4444, | |
"selenium_host" : "localhost", | |
"silent": true, | |
"screenshots" : { | |
"enabled" : false, | |
"path" : "" | |
}, | |
"desiredCapabilities": { | |
"browserName": "chrome", | |
"javascriptEnabled": true, | |
"acceptSslCerts": true | |
} | |
}, | |
"chrome" : { | |
"desiredCapabilities": { | |
"browserName": "chrome", | |
"javascriptEnabled": true, | |
"acceptSslCerts": true | |
}, | |
"chromeOptions" : { | |
"args" : ["disable-web-security", "use-fake-device-for-media-stream", "use-fake-ui-for-media-stream"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment