I periodically receive FAQ style questions. But I haven’t created an FAQ page… yet.
Recently there have been an influx of people on the free “Start Using Selenium WebDriver With Java” course, and they are a little confused by the amount of software they install.
Now the course does explain a little about what the software does when using them but the course hasn’t provided an overview… until now.
The text summary follows below the video:
We have some mandatory installs:
- Selenium WebDriver
- Java JDK
We install the Java JDK because we are writing and compiling Java code.
We install Firefox because Selenium WebDriver comes bundled with all the necessary drivers for Firefox so that becomes our default first browser to automate because Selenium WebDriver makes it easy to get started with Firefox out of the box.
We have to install Selenium WebDriver, otherwise we can’t automate anything. And when we use Maven, we don’t actually need to install it, we define it as a dependency, but if we use Ant we have to do additional work to install it.
We have to install JUnit because we use that as our default Test Runner and without it we can’t run any tests. And again, when we use Maven, we don’t actually need to install it, we define it as a dependency, but if we use Ant we have to do additional work to install it.
The course has some Optional installs. You can follow the course completely without these. But they make it easier for me to work in windows, and make it clearer when I’m recording the videos, the actions that I’m doing.
- Command Line Replacements instead of cmd: Console2 and ConEmu
- Rapid Environment Editor instead of the default Windows Environment property editing dialog, which can be hard to see what changes have been made.
These are completely optional, and you don’t need to install them.
We need some sort of build system. Either:
You choose one, and only need to install one. I recommend Maven.
With Maven, you declare WebDriver and JUnit as dependencies in the project configuration file, the pom.xml, and maven will download those dependencies for you.
With Ant, again you have to declare the dependencies in a build.xml configuration file. But you also need to download and install Selenium WebDriver, and JUnit.
So maven makes it easier when you are getting started as you have a few less things to worry about getting right.
You need to install one of the IDEs:
I recommend IntelliJ as people seem to have fewer out of the box issues with IntelliJ.
The Eclipse install and setup can vary between machines and beginner’s don’t need the additional hassle of trying to figure out why things aren’t working.
IntelliJ seems to work out of the box more easily.
So, your choice:
- Optionally install the helper tools,
- Install a JDK,
- Install Firefox,
- Choose which build system you want Ant, or Maven
- If you choose Ant then you will need to download Selenium WebDriver and JUnit
- If you use Maven, then you will configure maven to download Selenium WebDriver and JUnit for you
- Choose and install one IDE (I recommend IntelliJ)
Hopefully this helps people only follow the parts of the introductory course that they need to.