Download and Configure WebDriver with Eclipse
Steps
- Add the Selenium Java dependency to your Maven
pom.xml(or manually download the Selenium jars and add them to the build path). - Download the browser-specific driver executable (e.g., ChromeDriver) matching your installed browser version.
- Set the driver's system property in code, or place it on the system PATH.
System.setProperty("webdriver.chrome.driver", "path/to/chromedriver");
WebDriver driver = new ChromeDriver();
Verifying the Setup
Run a simple script that opens a browser and navigates to a URL — if the browser opens and loads the page, WebDriver is correctly configured.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.
.png)