Public | Automated Build

Last pushed: 2 years ago
Short Description
Selenium node for PhantomJS made for SeleniumHQ/docker-selenium
Full Description

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);
Docker Pull Command
Owner
stevenalexander
Source Repository