-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Running tests in PhantomJS
James Ford edited this page Jun 13, 2016
·
5 revisions
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
innightwatch.json
, such as:
"desiredCapabilities" : {
"browserName" : "phantomjs",
"javascriptEnabled" : true,
"acceptSslCerts" : true,
"phantomjs.binary.path" : "/path/to/phantomjs",
"phantomjs.cli.args" : ["--version"]
}
For more info about GhostDriver and its specific capabilities, please refer to the official GhostDriver Project.