- Selenium 3
- JDK
- Maven
- Cucumber
- JUnit / TestNG
Please follow below guide after importing the project in Eclipse.
- Go to m2 repository location in C:\Users\{user}\.m2
- Download settings.xml and paste on this location.
- Make sure you have an updated copy of the repository by pulling all changes from Git
- Right-click on project
- Select Maven > Update Project
- Right click on project (on Eclipse)
- Select Run As > Maven install.
- Right click on the project again
- Select Run As > Maven clean. This will remove all errors in the project.
- Go to src\test\java
- Expand base.testrunner package
- Right-click on CucumberTestRunner.java
- Select Run As > JUnit Test
- Make sure Internet Explorer is zoomed at 100%
- Check that that setting is the same for Enable Protected Mode in all types of security settings zone:
- Click on gear icon (upper-right) of Internet Explorer
- Click on Internet options
- Select Security tab
- Mark Enable Protected Mode checkbox in all zones (make sure setting for said checkbox is the same)
- Save all changes and close Internet options window then restart Internet Explorer.
- Click on firefox burger icon (upper right)
- Click on Options
- Select Privacy tab
- Click on 'clear your recent history'
- Delete everything (all details, time range = everything)
- Right-click on project
- Select Build Path > Configure Build Path
- Click Libraries tab
- Click on JRE System Library
- Click Edit button (right)
- Select the latest JDK (1.8) from the Execute environment dropdown. Then apply and close all dialog boxes (you can stop at this step. If you don't see any JDK option in the dropdown, proceed to the next steps).
- Click Installed JREs button
- Click Add button
- Select Standard VM and click Next
- Click Directory and look for your JDK installation directory before the bin folder (ex. C:\Program Files\Java\jdk1.8.0_112)
- Click Finish
- Click Apply then OK button to close the dialog box. The JDK option will now be available in the Execute environment dropdown. Go back to Step 6.