Selenium is a popular automation testing framework which works with a variety of technologies including Java, C#, Ruby, Groovy, Python, PHP, and Perl.
In order to write automation tests, Selenium provides the Selenium IDE, which is a plugin for Mozilla Firefox that primarily allows you to record and playback tests and export them into various languages including Java.
Selenium Maven Plugin allows you to specify automation tests created for Selenium in your Maven project and integrate it with the Maven build lifecycle.
First we need a web application project to get started. This command ought to do it:
$ mvn archetype:generate -DgroupId=net.srirangan.packt.maven -DartifactId=MySampleWebApp -DarchetypeArtifactId=maven-archetype-webapp ...