Selenium POM (Page Object Model) is a Java framework that provides ability to describe your web application as a hierarchy of models. It also adds helper methods for most common functions such us double click, or get value.
• Java 8
• Maven
• Selenium
• chrome
• firefox
• headless chrome
• the website that used: https://www.saucedemo.com/
• Create project maven with POM (Page Object Model)
• create the page, tests, and utilities packages
• Create pages for locators and actions
• Create tests for locators and actions
• Create utilities to help capture screen case when the test case failed.
• Retry failed test cases.
• fixed errors on the test script.
• upload the project on GitHub
1- Login with credentials provided by website (https://www.saucedemo.com/)
2- Sort the procduct from low to hige price and add it to cart
3- Proceed to checkout
4- Add required data in your information screen
5- Complete checkout process
6- Assert on completion of order
Whichever browser you choose to run your automation on, you need to make sure to install the latest driver for that browser compatible with your target version of Selenium WebDriver.
• ChromeDriver - https://sites.google.com/a/chromium.org/chromedriver/downloads
• IEDriver - http://selenium-release.storage.googleapis.com/index.html?path=2.53/