Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork18
Playwright Python example project with pytest and Allure report
License
nirtal85/Playwright-Python-Example
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- Test Automation - How To Use Custom User Agent in Selenium Python or Playwright Python to Avoid Security Bots
- Test Automation - How to Use Dynamic Base URLs with Selenium And Playwright Python in GitHub Actions
- Test Automation - Maximizing Browser Window With Playwright Python And Pytest
- Test Automation - How to Bypass Re-Login With Playwright Python And Pytest
- Test Automation - How To Perform Automated Accessibility Checks Using Playwright Python And Axe
- Test Automation - How To Link Playwright Traces and Videos to Allure Report using GitHub Actions
- Test Automation - Speeding Up Testing with Playwright Python using Local Storage
- Test Automation - Efficient Element Selection with Playwright Python using Test IDs
- Test Automation - Flexible Test Execution with Playwright Python and GitHub Actions
- Test Automation - Accelerating Playwright Python Tests with Parallel Execution in GitHub Actions
- Test Automation - How to Sync Playwright Versions Between Python and GitHub Actions
- From Open Source to Industry Sponsorship: The TestShift Journey with BrowserStack
- From Selenium to Playwright: A Data-Driven Look at the Shifting Landscape of Test Automation
| Tool | Description |
|---|---|
| allure-pytest | Allure reporting with your Pytest tests for better reporting |
| axe-playwright-python | Python library for running accessibility checks with Playwright |
| playwright | Python library to automate the Chromium, WebKit, and Firefox browsers through a single API. |
| pytest | Popular testing framework for Python |
| pytest-base-url | Pytest plugin for setting a base URL for your tests |
| pytest-playwright | Pytest plugin for Playwright integration for browser automation testing |
| pytest-split | Pytest plugin which splits the test suite to equally sized sub suites based on test execution time. |
| requests | Versatile library for making HTTP requests in Python |
This project is tested withBrowserStack, enabling cross-browser and mobile testing on real devices in the cloud.
git clone https://github.com/nirtal85/Playwright-Python-Examplecd playwright-pythonpython -m uv venv.venv\Scripts\Activate.ps1python -m ensurepip --upgradepython -m pip install uvuv sync --all-extras --dev
python3 -m pip install uvuv venvsource .venv/bin/activateuv sync --all-extras --devplaywright install
pytest
When no browser was selected then chrome will be used.
- Run according to tags:
pytest -m<tag_name>
Follow the instructionshere to install Scoop.
Run the following command to install Allure using Scoop:
scoop install allure
brew install allure
allure serve allure-results
View allure results via Github pages
- Navigate to thePlaywright Trace Viewer
- Locate the trace file stored under the test-results folder. This file is generated after running your tests. Click on the 'Upload' button in the Playwright Trace Viewer and select your trace file.
- After uploading, the trace viewer will display a detailed timeline of events that occurred during your test. This includes network requests, JavaScript execution, and browser interactions. You can click on individual events for more details.
pytest --help
pre-commit installpre-commit install --hook-type commit-msg
pre-commit autoupdate
pre-commit run --all-files
If you find this project helpful, you can support my work by buying me a coffee:
About
Playwright Python example project with pytest and Allure report
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.

