Yadentra / selenium-pytest-automation

Selenium-pytest-automation
0 stars 0 forks source link

Selenium PyTest Automation

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.

Prerequisites

Setup Instructions

  1. Clone the repository:

    
    git clone https://github.com/your-username/selenium-pytest-automation.git
    cd selenium-pytest-automation
  2. Install dependencies:

pip install selenium pytest webdriver-manager

  1. Run the tests: Use PyTest to run each test file individually or all tests at once:

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

Project Structure

Task Descriptions

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.