Hey, guys -
To satisfy my curiosity, I started looking into running my Nightwatch tests with PhantomJS. I've now spent a little bit of time and don't have it working yet, but it got me wondering about the net gain of actually getting it working. What's the benefit here?
One upside for me would be if I could run my tests in a completely headless manner that would be significantly faster, but I don't have a clear sense that this is the case.
Another would be the ability to run my tests, sans BrowserStack, on a headless Linux box. My reading indicates that this might be the point, but I'm not having much luck.
My existing tests run great w/ Selenium alone and against BrowserStack, but using the following PhantomJS config I get a failure in every case:
"phantomjs" : {
"selenium_host" : "127.0.0.1",
"selenium_port" : 4444,
"silent": true,
"screenshots" : {
"enabled" : false,
"path" : ""
},
"selenium" : {
"start_process" : true,
"server_path" : "lib/selenium/selenium-server-standalone-2.41.0.jar",
"log_path" : "",
"host" : "127.0.0.1",
"port" : 4444,
"cli_args" : {
"webdriver.firefox.profile" : "",
"webdriver.chrome.driver" : "",
"webdriver.ie.driver" : ""
}
},
"desiredCapabilities": {
"browserName" : "phantomjs",
"javascriptEnabled" : true,
"acceptSslCerts" : true,
"phantomjs.binary.path" : "/usr/local/bin/phantomjs"
}
},
I've installed phantomjs 1.9.7 via Homebrew and have nightwatch 0.5.28 installed.
Would love a little enlightenment before I burn too many cycles down this rabbit hole.
Thanks.