Factory to abstract away Selenium instantiation
Java Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo-project
sauce-ondemand-driver
selenium-client-factory
selenium-embedded-rc-driver
selenium-htmlunit-driver
src/site
.gitignore
README.md
pom.xml

README.md

This project contains the source code for the Selenium Client Factory library, which simplifies the usage and integration with the Sauce OnDemand plugin CI plugins.

It allows you to construct WebDriver and SeleniumRC instances in a single line, as the factory implementation will handle referencing the environment variables and system properties set by the CI plugin, eg.

WebDriver webDriver = SeleniumFactory.createWebDriver();

To reference the library, include the following dependencies in your Maven project

<dependency>
    <groupId>com.saucelabs.selenium</groupId>
    <artifactId>sauce-ondemand-driver</artifactId>
    <version>2.13</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>com.saucelabs.selenium</groupId>
    <artifactId>selenium-client-factory</artifactId>
    <version>2.13</version>
    <scope>test</scope>
</dependency>

You will also need to reference the Sauce Labs Maven repository

<repositories>
    <repository>
        <id>saucelabs-repository</id>
        <url>https://repository-saucelabs.forge.cloudbees.com/release</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>