Java Selenum WebDriver framework testing UI (website) This is an sample project to demonstrate how to work with Selenium and internet website pages , and perform varioous checks & validation of webpages . In addiotion it include Unit-testing using Junit5.
High level flow :-
- Create at list one page-object for the test
- Find "ynetnews" ( Israeli news website in English - www.ynetnews.com) in google
- Enter the website
- Verify the correct webpage is opened
- Weather: the current weather in the homepage print the weather
- Weather: Change the city to Eilat and print the weather
- Open the page in resolution 1920*1080
- open an article of your choice
- Verify “send to a friend” link exist in the article
- Open send to a friend and fill the needed data
- Verify there is a validation on the empty "captcha"
- Find "updates" section in main page
- Verify the “updates” article list is moving
- Verify the “updates” article list is not moving on mouse hover
Project Build
Using Maven command line for build and compile :
mvn clean
mvn compile
mvn clean install -DskipTests
mvn -Dtest=HomePageTest test
mvn -Dtest=SearchResultsPageTest test
mvn -Dtest=WebsiteTargetPageTest test
mvn -Dtest=ArticlePageTest test