Integrating Factory-enabled Tests to Maven

Add the following dependency to your POM:


If you are using a driver that's not in the factory jar, you'll also need to list them as a test-scoped dependency.

To set reasonable default values for configuration parameters while still allowing the user to override, configure your Surefire invocation like this:


Individual users can then override those values by setting "SELENIUM_DRIVER=..." and "SELENIUM_STARTING_URL=..." environment variables when invoking Maven, like SELENIUM_DRIVER=http://server:4444/ mvn test