Arquillian Phantom Driver

Arquillian Phantom Driver provides dependency on the GhostDriver, dependency on PhantomJS binary and provides runtime resolution of the binary artifact to enable true headless unattended testing.

License

License

Categories

Categories

JBoss Container Application Servers Ant Build Tools Arquillian Application Testing & Monitoring
GroupId

GroupId

org.jboss.arquillian.extension
ArtifactId

ArtifactId

arquillian-phantom-driver
Last Version

Last Version

1.2.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Arquillian Phantom Driver
Arquillian Phantom Driver provides dependency on the GhostDriver, dependency on PhantomJS binary and provides runtime resolution of the binary artifact to enable true headless unattended testing.
Project URL

Project URL

http://www.jboss.org/arquillian-phantom-driver
Project Organization

Project Organization

JBoss by Red Hat
Source Code Management

Source Code Management

https://github.com/qa/arquillian-phantom-driver

Download arquillian-phantom-driver

How to add to project

<!-- https://jarcasting.com/artifacts/org.jboss.arquillian.extension/arquillian-phantom-driver/ -->
<dependency>
    <groupId>org.jboss.arquillian.extension</groupId>
    <artifactId>arquillian-phantom-driver</artifactId>
    <version>1.2.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.jboss.arquillian.extension/arquillian-phantom-driver/
implementation 'org.jboss.arquillian.extension:arquillian-phantom-driver:1.2.1.1'
// https://jarcasting.com/artifacts/org.jboss.arquillian.extension/arquillian-phantom-driver/
implementation ("org.jboss.arquillian.extension:arquillian-phantom-driver:1.2.1.1")
'org.jboss.arquillian.extension:arquillian-phantom-driver:jar:1.2.1.1'
<dependency org="org.jboss.arquillian.extension" name="arquillian-phantom-driver" rev="1.2.1.1">
  <artifact name="arquillian-phantom-driver" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jboss.arquillian.extension', module='arquillian-phantom-driver', version='1.2.1.1')
)
libraryDependencies += "org.jboss.arquillian.extension" % "arquillian-phantom-driver" % "1.2.1.1"
[org.jboss.arquillian.extension/arquillian-phantom-driver "1.2.1.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.codeborne : phantomjsdriver jar 1.2.1
org.jboss.shrinkwrap.resolver : shrinkwrap-resolver-depchain pom 3.0.0-alpha-4

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Arquillian Phantom Driver

Arquillian Phantom Driver provides dependency on the GhostDriver, dependency on PhantomJS binary and provides runtime resolution of the binary artifact (distributed in Maven repository) to enable true headless unattended testing without need of local PhantomJS installation.

Usage

Add following snippet to your project's POM:

<dependencies>
    <dependency>
        <groupId>org.jboss.arquillian.extension</groupId>
        <artifactId>arquillian-phantom-driver</artifactId>
        <version>${artifact.version}</version>
    </dependency>
</dependencies>

Java code:

WebDriver driver = new PhantomJSDriver(
        ResolvingPhantomJSDriverService.createDefaultService(), // service resolving phantomjs binary automatically
        DesiredCapabilities.phantomjs());

or you can specify path to the phantomjs binary file. If the binary file doesn't exist or it isn't up to date, the resolver will copy own file to the given path:

DesiredCapabilities capabilities = DesiredCapabilities.phantomjs();

// where the binary binary is expected (will be resolved when file does not exist)
capabilities.setCapability("phantomjs.binary.path", "./target/phantomjs");

// enforce resolver to use given phantomjs version
capabilities.setCapability("phantomjs.binary.version", "2.1.1");

// if there is phantomjs available on PATH, use that one
capabilities.setCapability("phantomjs.prefer.resolved", Boolean.FALSE);

// NOTE: capabilities must be passed into the ResolvingPhantomJSDriverService if you plan on passing custom
// command-line arguments such as disabling SSL Certificate checking or other features.  

WebDriver driver = new PhantomJSDriver(
        ResolvingPhantomJSDriverService.createDefaultService(capabilities),
        capabilities);

Installation

mvn clean install
org.jboss.arquillian.extension

Versions

Version
1.2.1.1
1.2.1.Final
1.2.0.Final
1.1.4.Final
1.1.3.Final
1.1.2.Final
1.1.1.Final
1.1.0.Final
1.1.0.Beta1
1.0.3