Selenium

Selenium Eclipse Setup Tutorial – Create First Selenium Project & Run Automation Script

Selenium Eclipse Setup Tutorial 🚀

By Bhau Automation • Selenium Eclipse Tutorial for Beginners

🎯 What You Will Learn

  • How to install and setup Eclipse IDE
  • How to create first Selenium Java project
  • How to configure Selenium JAR files
  • How to setup browser driver
  • How to run your first Selenium automation script
💡 Eclipse is one of the most popular IDEs used for Selenium automation testing with Java.

📌 What is Eclipse IDE?

Eclipse IDE is a powerful development environment used for Java programming and Selenium automation testing. It helps testers write, manage, and execute automation scripts easily.

🛠️ Create First Selenium Project in Eclipse

Project → TestSuite

Packages → Group of Java classes

Classes → Every class treated as one test case

⬇️ Download Selenium JAR Files

Download Selenium WebDriver JAR files and connect them with Eclipse project using Build Path configuration.

⚙️ Configure Selenium JARs in Build Path

  • Right click on Project
  • Select Build Path
  • Click Configure Build Path
  • Add External JARs
  • Select Selenium JAR files

🌐 Choose Browser for Automation

Selenium supports multiple browsers like:

  • Google Chrome
  • Mozilla Firefox
  • Microsoft Edge

🔧 Set Browser Driver Property

System.setProperty("webdriver.chrome.driver",
"C:\Drivers\chromedriver.exe");

💻 First Selenium Automation Program

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class LaunchFacebook {

    public static void main(String[] args) {

        System.setProperty("webdriver.chrome.driver",
        "C:\Drivers\chromedriver.exe");

        WebDriver driver = new ChromeDriver();

        driver.get("https://www.facebook.com");
    }
}

▶️ Run Selenium Script

  • Right click on Java class
  • Select Run As → Java Application
  • Browser will launch automatically

🌍 Real-World Use Cases

  • Automation framework setup
  • Cross-browser testing
  • Web application testing
  • Regression automation

🎥 Watch Complete Video Tutorial

👉 Watch Selenium Eclipse Setup Tutorial

🎓 Key Takeaways

  • Eclipse IDE is beginner-friendly for Selenium
  • Build Path configuration is essential
  • Selenium JAR files are mandatory
  • Browser driver setup is required before execution
  • First automation script launches browser successfully
Next Step: Learn Selenium WebDriver methods and XPath creation after setup completion.

🚀 Created with ❤️ by Bhau Automation