A pytest plugin for playwright python
Project description
pytest-playwright-enhanced
[!CAUTION]
pytest-playwright-enhanced
is in the alpha stage.
pytest-playwright-enhanced
is a batteries included pytest
plugin for the playwright
python bindings that
offers extended functionality with a focus on removing boilerplate code for projects that wish to test modern
web applications and APIs. pytest-playwright-enhanced
plans to offer the following:
- Automatic, browser management and installation if required.
- Improved, human readable APIs that build on top of playwrights API.
- Improved artifacting and debugability.
Asynchronous
support.- Custom
hooks
to allow you to plugin and modify behaviour at runtime. - Much More...
pytest-playwright-enhanced
is currently implementing core plugin functionality, the main enhancements
will follow shortly.
Quick Start
Quickly get running by doing the following:
pip install pytest-playwright-enhanced
pytest <posargs> --acquire-binaries=with-deps
Fixtures
playwright
- At present this returns the sync Playwright
instance.
pw_multi_browser
- Automatically run a test on chromium
, firefox
and webkit
.
Hooks
pytest_playwright_acquire_binaries
- Hook in and customise binary acquisition at runtime.
Markers
pytest.mark.only_on_browsers
- Only run on a subset of browsers when using the pw_multi_browser
fixture.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest_playwright_enhanced-0.1.2.tar.gz
.
File metadata
- Download URL: pytest_playwright_enhanced-0.1.2.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af44c7e133da93d82643066cfa2bff0038abfc36d82f63da717a8d3f461219ea |
|
MD5 | b03b528b629be1f96afd978da3f931bf |
|
BLAKE2b-256 | ebf45d53b86df541c06236780d54a119d802b4659d4587483cee8c2b3e5ee36a |
File details
Details for the file pytest_playwright_enhanced-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pytest_playwright_enhanced-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70c3c15938e85e3e15622363ce4ec784b3e35bc14f60d2433ee5c563473c5006 |
|
MD5 | c13f57b3a213cd083c547c54bf978025 |
|
BLAKE2b-256 | 9f27b76958510493756d4606d8c555320e13c1263c0c25841478facce32201b8 |