Skip to content

ismaayan/python-selenium-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium with Python project

Welcome to the Selenium Python Project repository! This project demonstrates test automation using Selenium WebDriver with Python, targeting an e-commerce website demo. It covers common end-to-end scenarios in a structured, modular format.

Features

  • Browser Automation: Executes automated test flows for user actions, page navigation, and validation.
  • Page Object Model (POM): Organizes tests and enhances maintainability.
  • Base page: serves as a foundational class that encapsulates common functionalities and initialization tasks for web pages
  • Pytest Integration: Facilitates testing with robust fixtures and modular setup.
  • Data-Driven Testing: Incorporates Faker for random data generation.

Setup

Prerequisites

  • Python 3.8+
  • ChromeDriver (ensure it matches your Chrome version)
  • FirefoxDriver (ensure it matches your Chrome version)
  • Required packages: Install from requirements.txt
pip install -r requirements.txt

Configuration

  • WebDriver Path: Ensure the ChromeDriver and FirefoxDriver paths are set correctly.
  • Environment Variables: Add any necessary configurations, such as base URLs or credentials, in an .env file.

Running Tests

Execute tests with:

pytest tests/

Project Structure

  • tests/: Contains test cases.
  • pages/: Implements POM classes.
  • config/: Stores configuration files.
  • resources/: Holds additional assets.

Contributing

Contributions are welcome! Please create a new branch for feature enhancements and bug fixes, and submit pull requests for review.

contact 💬

Contact with me

Github logo email logo Linkedin Logo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published