Configure Selenium WebDriver dependencies in a Java Maven project
Preconditions (3)
Step 1: Create a new Maven project in your IDE
Step 2: Open the pom.xml file
Step 3: Add the Selenium Java dependency with the latest stable version inside the <dependencies> tag
Step 4: Add the WebDriverManager dependency to manage browser drivers automatically
Step 5: Save the pom.xml file and let Maven download the dependencies
Step 6: Create a simple Java class to verify Selenium WebDriver can be instantiated
Step 7: Write code to open a browser and navigate to https://example.com
Step 8: Run the Java class and observe the browser opening
✅ Expected Result: Maven downloads Selenium and WebDriverManager dependencies successfully. The Java program launches a browser window and navigates to https://example.com without errors.