Selenium Eclipse Setup & JAR Configuration 🚀
By Bhau Automation • First Selenium Project Guide
🎯 What You Will Learn
- Create first Selenium project in Eclipse
- Understand project structure (Packages & Classes)
- Add Selenium JAR files
- Configure build path
- Run first automation script
📁 Project Structure
- Project → TestSuite
- Package → Group of classes
- Class → Each class represents a test case
⬇️ Step 1: Download Selenium
Download Selenium WebDriver JAR files from official Selenium website.
⚙️ Step 2: Add JAR Files in Eclipse
- Right-click project → Properties
- Go to Java Build Path
- Click on Libraries
- Add External JARs
💡 Always add both client JAR and dependencies folder.
🔧 Step 3: Configure Browser Driver
System.setProperty("webdriver.chrome.driver","path/to/chromedriver");
💻 Step 4: First Selenium Program
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class FirstTest {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","path/to/chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://www.facebook.com");
}
}
▶️ Step 5: Run Your Script
- Right-click class
- Run As → Java Application
- Browser will launch automatically
🌍 Real-World Use Cases
- Initial automation project setup
- Framework creation
- Running test scripts
- Browser automation
🎥 Watch Full Video
👉 Watch Complete Eclipse Setup Tutorial
🎓 Key Takeaways
- JAR configuration is essential for Selenium
- Build path must be set correctly
- Browser driver setup is mandatory
- First step toward automation framework
🚀 Created with ❤️ by Bhau Automation