Sign inSign up

stevenalexander/node-phantomjs

By stevenalexander

Updated about 11 years ago

Selenium node for PhantomJS made for SeleniumHQ/docker-selenium

Image
2

10K+

stevenalexander/node-phantomjs repository overview

PhantomJS Selenium node

Container for running Selenium tests in PhantomJS as part of a Selenium grid of different browsers. Made from a fork of the official SeleniumHQ/docker-selenium containers.

See SeleniumHQ/docker-selenium for details on how to run with other browser nodes.

Run

docker run -d -p 4444:4444 --name selenium-hub selenium/hub:2.46.0
docker run -d -P --link selenium-hub:hub stevenalexander/node-phantomjs:2.46.0

In your Selenium Test:

DesiredCapabilities desiredCapabilities = DesiredCapabilities.phantomjs();
desiredCapabilities.setBrowserName("phantomjs");

WebDriver webDriver = new RemoteWebDriver(new URL("http://HUBCONTAINERIP:4444/wd/hub"), desiredCapabilities);

Tag summary

Content type

Image

Digest

sha256:32352e0ca

Size

198.1 MB

Last updated

about 11 years ago

docker pull stevenalexander/node-phantomjs:2.46.0