This repository contains automation scripts using Selenium and PyTest to complete various testing tasks. Each script demonstrates a specific functionality, including Google search automation, user registration, and product search on a demo site.
Clone the repository:
git clone https://github.com/your-username/selenium-pytest-automation.git
cd selenium-pytest-automation
Install dependencies:
pip install selenium pytest webdriver-manager
pytest test_google_search.py # Run Google search test pytest test_register_user.py # Run user registration test pytest test_search_product.py # Run product search test
test_google_search.py: Automates Google search with dynamic dropdown handling.
test_register_user.py: Automates user registration, account creation, and deletion on Automation Exercise.
test_search_product.py: Automates product search functionality.
Automates a Google search for a given term, handling dynamic dropdown and verifying that a new results page is opened.
Simulates the user registration flow on automationexercise.com, including signup, account creation, and account deletion.
Automates product search functionality on automationexercise.com, verifying that the searched products are displayed.
PyTest is installed and used as the test runner for all tasks.