How katdev16/testing-ui-automation-on-amazon works
This repository is a Selenium page-object layer for exercising Amazon shopping pages, not the storefront itself. Its main flow models searching, opening a product, adding it to the cart, and viewing or removing cart items; the home-page object also exposes language controls. The graph reflects page transitions and browser interactions visible in sampled source. Test callers are excluded, and no README or test source was available to confirm how these objects are instantiated.
Main entry points: ProductPage.java Product page · HomePage.java Home page · SearchResultsPage.java Search results · AddedToCartPage.java Added confirmation
Components 13
Product discovery
- Home page
Amazon/src/main/java/Pages/HomePage.java - Search results
Amazon/src/main/java/Pages/SearchResultsPage.java - Product page
Amazon/src/main/java/Pages/ProductPage.java
Cart workflow
- Added confirmation
Amazon/src/main/java/Pages/AddedToCartPage.java - Cart page
Amazon/src/main/java/Pages/CartPage.java - Add cart page
Amazon/src/main/java/Pages/AddCartPage.java
Runtime support
- Config reader
Amazon/src/main/java/utils/ConfigReader.java - Logger helper
Amazon/src/main/java/utils/Log.java
Other components
- Automation caller
- Selenium WebDriver
- Amazon storefront
- Config properties
Amazon/src/main/resources/config.properties - Logging framework
Connections 14
- Automation caller → Home page: uses page object
- Home page → Search results: returns results page
- Search results → Product page: returns product page
- Product page → Added confirmation: returns confirmation page
- Product page → Cart page: returns cart page
- Added confirmation → Cart page: returns cart page
- Home page → Selenium WebDriver: drives browser
- Search results → Selenium WebDriver: drives browser
- Product page → Selenium WebDriver: drives browser
- Added confirmation → Selenium WebDriver: drives browser
- Cart page → Selenium WebDriver: drives browser
- Selenium WebDriver → Amazon storefront: interacts with
- Config reader → Config properties: reads
- Logger helper → Logging framework: delegates logs