Get Started With Selenium WebDriver Using Maven, IntelliJ and Java

Free WebDriver Introductory Course

“Start Using Selenium WebDriver” a short, free, online course to help you get started and install the tools you need to work with Selenium WebDriver and Java. By the end of this course you will have written your first test.

Getting Started with Selenium WebDriver can prove tricky.

That’s one reason why we created a set of introductory videos to help you get the tools you need installed to get up and running.

If you basically know what your are doing and want a “Just the Facts” approach to installation and getting started then – use our Speedrun Install Checklists and Videos.

About the Course

This course covers the basic setup steps required for anyone starting out with Selenium and Java.

You will learn how to install:

  • Java
  • Maven
  • Firefox and the necessary Firefox plugins to support you automation.
  • IntelliJ
  • & optionally Ant and Eclipse – you don’t need to, I just added it for completeness

We also take a few steps that take you through the creation of a simple project with your first test.

After following this course you should be setup to follow the various tutorials on the web, or buy and work through the Selenium Simplified book, or other books on Selenium available.

And if you want to go on a Selenium training course. Then the steps in this course should be the pre-requisite installations and checking instructions to make sure the course goes smoothly.

I produced this course to make it free and easy for people to get started, but also to act as a pre-requisite prior to coming on my WebDriver training courses. This way on the training, we don’t have to spend a morning getting the basic tools setup and working, you can do it prior to the course and we can spend more time learning WebDriver Automation.

You might also want to read the supporting notes and handouts post.

The videos are an introductory course, and replicate the initial setup and configuration lectures for our full online course.

Selenium 2 WebDriver API course

Stay up to date with the course and learn about new video lectures and offers on our full course by joining our mailing list.

Install The Tools

You might also find our ‘speedrun’ checklist and videos useful. The speedruns are a ‘no commentary’, fast, run through of the install.

  1. Watch on Youtube Overview of Selenium
  2. Watch on Youtube What Tools Will We Install And Why
  3. Use our Speedrun Install Checklists and Videos to install everything you need
  4. Watch on Youtube Introduction to the IDEs

Create a Project And Write a Test

In the videos I use an older version of Selenium WebDriver (2.24) when you work through the videos, use a more recent version e.g. 2.35.0 (if you need help then see the video in the FAQ section).

  1. Watch on Youtube Intro To Maven
  2. Watch on Youtube Add Selenium As a Dependency
  3. Watch on Youtube Summary Of Why Maven
  4. Watch on Youtube How is Maven getting the dependencies
  5. Recommend you use ChromeDriver instead of FirefoxDriver when you follow along with these older videos.
  6. Watch on Youtube My First WebDriver Test
  7. Watch on Youtube My First WebDriver Test Explored
  8. Watch on Youtube Exercise My First Test
  9. Watch on Youtube Use A Real Browser
  10. ExtraWatch on Youtube Create a simple WebDriver Test using IntelliJ
  11. Extra: Watch on Youtube Running Tests From Maven
  12. Extra: Watch on Youtube Running Tests From Command Line with Maven
  13. Extra: Watch on Youtube Running Maven Tests from IntelliJ IDE

After working through these videos you will be ready for our full WebDriver Course.

Selenium 2 WebDriver API course

Next Steps

  1. What are my next steps after writing my first Selenium WebDriver test?


If you followed the above lectures then you should have a working project. If you get stuck then you can download the source code:

  1. Watch on Youtube Importing the source code from Git into IntelliJ 13
    1. Importing the source code into maven from Git (older)

The full course has every exercise illustrated and explained with sample source code to make it easy to learn the WebDriver API.

Selenium 2 WebDriver API course


  1. FAQ: What to do when things go wrong – first things first?
  2. Read the FAQ posts on this blog
  3. Maven Troubleshooting Hints Tips and FAQs
  4. Watch on Youtube Maven Troubleshooting Downloads
  5. Watch on Youtube Maven Troubleshooting Proxies and Cache issues
  6. Watch on Youtube FAQ: Why are my JUnit Asserts deprecated
  7. Watch on Youtube FAQ: Why is Firefox browser not closing?
  8. Watch on Youtube FAQ: How to Update the version of Selenium (shows 2.24 to 2.26)

To update the version of Selenium amend the dependency, e.g.


Selenium 2 WebDriver API course

Using Ant & Eclipse

I include Ant & Eclipse because I used them in the “Selenium Simplified” book, which covered Selenium-RC. I prefer to guide beginners towards Maven and IntelliJ but include these videos for completeness.

Plenty More Selenium WebDriver Videos

There are other free preview videos on our full WebDriver Course or subscribe to our YouTube Channel.

Selenium 2 WebDriver API course

Stay up to date with the course and learn about new video lectures and offers on our full course by joining our mailing list.

11 Responses to Get Started With Selenium WebDriver Using Maven, IntelliJ and Java

  1. Pingback: FAQ: What are my next steps after writing my first Selenium WebDriver test? » Selenium Simplified

  2. Pingback: Supporting notes and handouts for our Getting Started Online Course » Selenium Simplified

  3. Pingback: Free Start Using Selenium WebDriver With Java Course » Selenium Simplified

  4. Pingback: Online Selenium WebDriver Course amendments » Selenium Simplified

  5. Kiran says:

    Hi Alan,

    I would like to take your course Selenium 2 Webdriver with Java. Most of the above instruction are pertaining to windows machine (installation). I’ve mac and i’ll be using Intellij ver 13. Please advice if you will providing instruction to install on Mac and Intellij 13.


    • Alan says:

      Hi Kiran, Currently the instructions are for Windows, but people have managed to set it up on Mac. I’ll create some videos for Mac in the future, but currently it is all Windows.

  6. Pingback: 04: Alan Richardson: How to create Model Driven Automation Libraries

  7. Pingback: Cucumber and Selenium | My Technical Blog

  8. Jimmy Shoo says:


    I am using a MacBook Pro. I have installed the latest IntelliJ IDE, the latest Maven, the latest Java SDK, referenced the Junit 4.12 and Selenium HQ 2.44 version.

    When writing the MyFristTest class, I am not able to move beyond
    WebDriver driver = new FirefoxDriver(); as I get it in red. What I notice is that even though I have all my dependencies added to my pom file and none are in red , the class has this new object showing in red.

    any tips?

  9. Pingback: First WebDriver Speedrun Install added » Selenium Simplified

Leave a Reply

Your email address will not be published. Required fields are marked *