There was an error while loading. Please reload this page.
Running tests in PhantomJS is possible with the aid of GhostDriver.
Download the latest stable PhantomJS.
Configure the path; set the location to the binary in desiredCapabilities in nightwatch.json, such as:
desiredCapabilities
nightwatch.json
"desiredCapabilities" : { "browserName" : "phantomjs", "javascriptEnabled" : true, "acceptSslCerts" : true, "phantomjs.binary.path" : "/path/to/phantomjs", "phantomjs.cli.args" : [] }
Use phantomjs.cli.args array to pass arguments directly. E.g. '--ignore-ssl-errors=true'.
phantomjs.cli.args
For more info about GhostDriver and its specific capabilities, please refer to the official GhostDriver Project.