How gokuldevp/amazon_search_pytest_automation works
This repository automates e-commerce crawling and functional checks with Selenium. The documented crawling workflow opens the site, searches products, traverses result pages, extracts product data, and saves it to CSV; a separate workflow checks product-page elements. Browser setup, logging, screenshots, and HTML reports support execution. The test-case implementations were not sampled, so their wiring is shown only where supported by the README; CAPTCHA and traffic errors can disrupt runs.
Main entry points: search_result_page.py Search results · conftest.py Browser setup · test_cases Test workflows · home_page.py Homepage actions
Components 15
Crawling
- Test workflows
test_cases
Page interactions
- Homepage actions
page_objects/home_page.py - Search results
page_objects/search_result_page.py - Product checks
page_objects/product_detailed_page.py
Runtime support
- Site settings
configs/configs.py - Page base
page_objects/base_page.py - Browser setup
test_cases/conftest.py - Browser factory
utilities/utilities.py - File logger
utilities/utilities.py
Results
- Screenshot capture
utilities/utilities.py - Product CSV
page_objects/search_result_page.py - HTML report
test_cases/conftest.py
Other components
- Test runner
- Amazon site
- WebDriver
Connections 23
- Test runner → Test workflows: runs tests
- Test workflows → Browser setup: uses fixtures
- Browser setup → Browser factory: selects browser
- Browser factory → WebDriver: creates driver
- Browser setup → File logger: gets logger
- Browser setup → WebDriver: provides driver
- Test workflows → Homepage actions: crawls site
- Test workflows → Search results: extracts results
- Test workflows → Product checks: checks product
- Homepage actions → Site settings: reads settings
- Homepage actions → Amazon site: opens and searches
- Search results → Amazon site: reads results
- Search results → Amazon site: advances pages
- Search results → Product CSV: writes products
- Product checks → Amazon site: checks page elements
- Homepage actions → Page base: inherits
- Search results → Page base: inherits
- Product checks → Page base: inherits
- Browser setup → Screenshot capture: captures failures
- Browser setup → HTML report: configures report
- Homepage actions → File logger: logs activity
- Search results → File logger: logs activity
- Product checks → File logger: logs activity