Now that we know What is Selenium and Selenium WebDriver, let’s move on to the next steps towards Automation scripting. What are the pre-requisites to writing automation scripts using Selenium? Obviously, you need the tools first. Additionally you need to finalize the programming language you will be using to write test scripts and install the associated IDE. As ‘Java’ is the most popular & widely used programming language across the world (both for development & automation testing) – we will be focusing on writing scripts in Java using Selenium. For that first you need to have the Java Development Kit, Eclipse IDE and Selenium WebDriver. Let’s start with installing Java Development Kit, popularly known as JDK.
- Visit the official Oracle Java Download webpage.
Which Java development package do we need? For Selenium scripting, we need the 1st – JDK.
- Java SE Development Kit (JDK): For Java Developers. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.
- Server Java Runtime Environment (Server JRE): Administrators running applications on a server. Includes tools for JVM monitoring and tools commonly required for server applications, but does not include browser integration (the Java plug-in), auto-update, nor an installer.
- Java Runtime Environment (JRE): End user running Java on a desktop. Covers most end-users needs. Contains everything required to run Java applications on your system.
- Find the relevant JDK to-be-installed as per your Operating System specifications – Windows, Linux, Solaris, etc. If it’s Windows OS – make sure to download the correct JDK with respect to 64-bit or 86-bit. Accept the License agreement and click on the relevant download link for the latest JDK version.
- Run the ‘.exe‘ file. It opens the Installation Wizard for Java SE Development Kit. Click ‘Next’.
- Next screen gives you the option to select some optional features to install. Don’t make any changes and click ‘Next’.
- The initial installation starts.
- After initial component registration, a pop-up is displayed asking if you want to change the destination folder where Java will be installed. By default the location would be C:/Program Files >> No need to make any changes here unless you really want to change the destination folder. Just click ‘Next’.
- The actual Java installation begins. Wait until the installation finishes.
- Finally, you see a Java SE Development Kit – Complete pop-up. Congratulations! You have moved one step closer to writing scripts using Selenium – Java development is successfully installed in your system. Interested in reading Java documentation? You can click on ‘Next Steps’ button on the pop-up, else click ‘Close’!
Now that you have taken the first step to Selenium Automation – Java Development, don’t look back. The next step (article) would be to install Eclipse IDE (where you actually write the code).
Looking for a Job Change in QA/Testing technology? Get Regular Job notifications @ WhatsApp!