How To Setup a Selenium WebDriver Maven Project in Eclipse ?
Rishu Kumar pandey
Senior Test Automation Engineer @mphasis | Ex-Sopra Steria | SDET | Test Automation | API Testing | UFT, Robot Framework, Cypress | SQL & Mobile Testing | JavaScript, HTML | Web Services | Tosca Expert
Pre-requisite
Create a new Project?
1. Add a New Java Project in Eclipse IDE
Open Eclipse IDE, as described in the above steps and select?“Project” from the list of project types to create a new module.
This project will get?automatically?saved to the Workspace that you would have specified previously.
2. Now select Maven project from wizard
?3.?Tick the <Create a Simple Project (skip archetype selection)> checkbox and click Next.
4.?Fill the group id, artifact id, and name. And click the Finish button to create the project.
?5. Every maven project uses a POM file to add the required dependencies. So we’ll also be adding some libs required for our Webdriver maven project. Namely, these are the Selenium and TestNG JAR files. Please check from the below screenshot.
Note:?Make sure you provide the correct version for each dependency you add in the POM.
This way we create Selenium Maven Project in Eclipse.