Skip to content

This repository demonstrates a Cross-Browser Testing Framework built using Selenium and Pytest with the Page Object Model (POM) design pattern. It supports running tests across multiple browsers with configurable options and ensures maintainable, scalable, and reusable test scripts.

Notifications You must be signed in to change notification settings

shashimadgi/PythonSeleniumFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cross-Browser Testing and Page Object Model This repository provides a Cross-Browser Testing Framework implemented using Selenium, Pytest, and the Page Object Model (POM) design pattern. It supports running tests across multiple browsers, generating detailed HTML reports, and debugging with embedded screenshots for failed test cases.

Features

  1. Cross-Browser Support Easily run tests on Chrome, Firefox, and Internet Explorer. Select the browser using the --browser_name command-line option. Automated WebDriver installation and management with webdriver-manager.
  2. Page Object Model (POM) Clean and maintainable test scripts with POM design. Each page has its own Python class, encapsulating locators and actions.
  3. Pytest Framework Simplified test execution with Pytest fixtures. Centralized browser setup and teardown. Custom hooks for embedding screenshots in HTML reports.
  4. Detailed HTML Reporting Generate detailed HTML reports for test runs. Embed screenshots for failed test cases, making debugging easier.

Usage:--- Run Tests on Default Browser (Chrome): pytest

Run Tests on a Specific Browser: Use the --browser_name option to specify the browser: pytest --browser_name=firefox Generate HTML Reports: Use the --html option to generate a test report: pytest --html=report.html Run Specific Tests: Execute only a specific test file or function: pytest tests/test_e2e.py or pytest tests/test_HomePage.py

About

This repository demonstrates a Cross-Browser Testing Framework built using Selenium and Pytest with the Page Object Model (POM) design pattern. It supports running tests across multiple browsers with configurable options and ensures maintainable, scalable, and reusable test scripts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages