Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Documentation option to use phantomjs #7

Closed
michaelBenin opened this Issue Mar 8, 2014 · 10 comments

Comments

Projects
None yet
4 participants
Owner

christian-bromann commented Mar 8, 2014

Answer works here as well

@christian-bromann see the comment about the output.

Running "webdriver:test" (webdriver) task
Listening on: 127.0.0.1:8000

[15:56:16]: ERROR COULDNT GET A SESSION ID
[15:56:16]: Exiting process with 1

works with chrome but not phantom.

Test:
https://gist.github.com/michaelBenin/9438779

works with chrome but not phantom.

Seems that you have a selenium standalone server running on localhost right? I am using the selenium-standalone package to run a selenium server before the tests start. Could you please try to download and run this server manually!?

Have you installed phantomjs on the default path? Try to run the selenium server with the path to phanotmjs set like

$ PATH="/path/to/node_modules/phantomjs/bin:$PATH" java -jar selenium-server-standalone-2.40.0.jar

I opened this issue here: webdriverjs#8

It would be nice if this task could use phantomjs as a dependency as well as the selenium standalone, then there would be no configuration for this.

Ok I have this working when phantomjs is available on the path.

If PhantomJS is setup correctly the standalone server should automatically use the phantomdriver to start phanotmjs.

Great! So I guess all questions are answered. Closing.

Contributor

binarykitchen commented Apr 15, 2014

Hmmm, I still have this issue and cannot run phantomjs.

How can I test the PhantomJS setup? And how can I increase the log level to see any issues in grunt?

post your config, make sure you have phantom available on the command line

Contributor

binarykitchen commented Apr 23, 2014

Sorry, I solved it a while ago with a proper PhantomJS installation. All good now.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment