Building our test project with Apache Maven

Getting a fully working Maven install up-and-running is beyond the scope of this book, but it shouldn't be too hard. Apache has a guide to setting Maven up in 5 minutes at the following link:

If you are running the Debian derivative of Linux, it is as easy as:

sudo apt-get install maven

Or, if you are running a Mac with homebrew, it is just:

brew install maven

Once you have Maven installed and working, we will start our Selenium project with a basic POM file. We are going to start out by creating a basic Maven directory structure and then creating a file called pom.xml in it. The directory structure is displayed here:

There are two ...

Get Mastering Selenium WebDriver now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.