![]() ![]() Don’t forget to select the “Use default Workspace location” option. Step 3: Click on Next button in the new screen.Select Maven Project under Maven category and click on Next button. Step 2: In the new project window, there are many wizard to choose.Step 1: Open Eclipse then go to File > New > Project.If you are new to maven project, here are the steps to follow. Just add the following dependencies into your project pom.xml file. ![]() In that case, it’s very easy to import selenium jars into your project. Most of the java project these days use Maven as the build tool. Our Eclipse Java project is configured to use selenium classes. Here we need to import WebDriver and ChromeDriver classes. Also, the errors related to Selenium classes would have been disappeared. Step 15: Now your Project Package Explorer window should look similar to the below image.Step 13: Add all the jars under libs folder.Step 12: Add client-combined jar from the selenium jars folder.Then click on Libraries tab and click Add External JARs. Let’s go ahead and add Selenium JAR files to our project to fix these errors.- Step 11: Right click on Project Testing. Below image shows us the error message when we won’t add jar files. Step 10: Now we add few lines of Selenium code without adding JAR files.Step 9: Now your Eclipse window will look something like below.Step 8: Give Class name Test, check the option checkbox public static void main and click on Finish button.Step 7: Right click on package automation and select New > Class.Now you can see a new package name automation under project name Testing. Step 6: Give Package name automation and click on Finish button.Step 5: Right click on Project name Testing and select New > Package.Step 4: Give your Project name ‘ Testing‘ as shown below.Step 3: Create a new Java Project from File > New > Project.Step 2: When asked to select for a workspace, just click Launch button to accept the default location.Step 1: Launch the “eclipse.exe” file inside the eclipse installation folder.Selenium Extract Configure Eclipse IDE with Selenium WebDriver ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |