Welcome back to Day 16 of My Automation Journey! βπ»
In the previous days, I focused on Java fundamentals like:
π Encapsulation
π¦ Packages
π§© Access Modifiers
π Method Overriding
But before writing Selenium automation scripts, we need to prepare our development environment properly.
So todayβs goal was simple but important:
βοΈ Install and configure the tools required for Selenium Automation
π§° Tools Required for Selenium Automation
Before writing our first automation script, we need the following tools.
Tool Purpose
β Java (JDK) Programming language used for Selenium
π» Eclipse IDE Writing and managing automation code
π¦ Maven Dependency management & project structure
π€ Selenium Automation library for browser testing
Setting these up correctly helps avoid environment issues later.
β Step 1 β Install Java (JDK)
Selenium with Java requires the Java Development Kit (JDK).
π₯ Download JDK
Download the latest LTS version such as:
JDK 17
JDK 21
After downloading, run the installer and complete the setup.
Typical installation path:
C:\Program Files\Java\jdk-17
βοΈ Step 2 β Configure JAVA_HOME
To allow the system to access Java globally, we must configure environment variables.
Steps
1οΈβ£ Open System Properties
2οΈβ£ Click Environment Variables
3οΈβ£ Under System Variables, add:
JAVA_HOME = C:\Program Files\Java\jdk-17
Now update the Path variable and add:
%JAVA_HOME%\bin
β Step 3 β Verify Java Installation
Open Command Prompt and run:
java -version
Example output:
java version "17.0.x"
Now verify the compiler:
javac -version
If both commands work, Java is installed correctly. π
π» Step 4 β Install Eclipse IDE
Next, we need an IDE to write and manage our automation code.
One of the most popular IDEs for Java automation is Eclipse.
π₯ Download Eclipse
Download:
π Eclipse IDE for Java Developers
Installation
1οΈβ£ Run the Eclipse Installer
2οΈβ£ Select Eclipse IDE for Java Developers
3οΈβ£ Choose installation location
4οΈβ£ Launch Eclipse
The first time Eclipse opens, it will ask for a Workspace location.
Example:
C:\Users\YourName\workspace
π¦ Step 5 β Maven (No Separate Installation Needed!)
Hereβs something interesting I learned today. π
π Eclipse already includes Maven support by default.
This is called the m2e (Maven Integration for Eclipse) plugin.
So for most Selenium automation setups:
β You DO NOT need to install Maven separately.
Eclipse automatically handles:
- Maven project creation
- Dependency management
- Build lifecycle
This makes setup much simpler for beginners. π
π Step 6 β Create a Maven Project in Eclipse
Now letβs create our automation project.
Inside Eclipse:
1οΈβ£ Click File β New β Maven Project
2οΈβ£ Select Create a simple project
3οΈβ£ Enter:
Group Id β com.automation
Artifact Id β selenium-project
Click Finish.
Eclipse will automatically generate the Maven structure.
π Maven Project Structure
After creation, your project will look like this:
src/main/java
src/test/java
pom.xml
Important File
π pom.xml
This file manages all project dependencies like:
- Selenium
- TestNG
- WebDriverManager
- Logging libraries
Instead of manually downloading jars, Maven handles everything automatically.
π‘ My Key Learning Today
Today was all about building the right foundation for Selenium automation.
Things I learned today:
β How Java powers Selenium automation
β Why Eclipse is widely used for automation testing
β Maven is already integrated in Eclipse
β Dependencies can be managed easily using pom.xml
This setup will help me build clean and scalable automation frameworks.
π€ A Small Note
I used ChatGPT to help structure and refine this blog while ensuring the concepts remain aligned with my trainerβs explanations.

Top comments (0)