I have everything set up and working up until adding in PhantomJS. So when I test the helloWorld.js file with just Selenium and it launches a browser window it works. However when I put in the “desired capabilities” portion into nightwatch.json file I get an error back like the following.
Error retrieving a new session from the selenium server
{ sessionId: null,
status: 13,
state: 'unhandled error',
value:
{ cause: null,
hCode: 665814274,
screen: null,
message: null,
localizedMessage: null,
class: 'java.util.concurrent.TimeoutException' },
class: 'org.openqa.selenium.remote.Response',
hCode: 1950702248 }
I am pretty sure that it is actually making the connection to PhantomJS and the problem is there. Anyways any help would be appreciated. I am on a mac, using selenium 2.46.0 and phantomjs 2.0.0.
Thanks for the help. I did get a response about this on the MeteorClub Slack group as well.
“phantom 2.0 doesn’t have webdriver bindings yet (ghost driver not in there yet last I looked), so you won’t be able to get a selenium based framework (like nightwatch) to work with it”