Skip to content

arquillian/arquillian-selenium-bom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium BOM (Bill of Materials)

This project intends to improve Selenium dependency management by specifying POM managing dependency versions for all Selenium artifacts.

WARNING: HtmlUnitDriver was removed from the Selenium main distribution package in the version 2.53.0. For this reason, the HtmlUnitDriver dependency is neither included in the Selenium BOM since the version 2.53.0.
For more information see:
https://raw.githubusercontent.com/SeleniumHQ/selenium/master/java/CHANGELOG
https://github.com/SeleniumHQ/htmlunit-driver

Usage

Add following snippet to your project's POM:

<properties>
    <version.selenium>3.13.0</version.selenium>
</properties>

<dependencyManagement>
    <dependencies>
        ...
        <dependency>
            <groupId>org.jboss.arquillian.selenium</groupId>
            <artifactId>selenium-bom</artifactId>
            <version>${version.selenium}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        ...
    </dependencies>
</dependencyManagement>

Place the selenium-bom import declaration above any other import which manages Selenium dependencies in order to get dependencies managed correctly.

For more information about dependency management, see Introduction to Dependency Management.

Installing

In order to install new version of Selenium BOM locally, change ${version.selenium} version to the one you would like to install and run:

mvn install

Testing

When you install updated Selenium BOM, you should verify all the versions specified in BOM are available in Maven Central Repository. You can do that by executing following command:

mvn dependency:tree -f pom-tests.xml

Deploying

In order to install new version to configured repository (distrubutionManagement section), change ${version.selenium} and then run:

mvn deploy