Skip to main content

A pytest plugin for playwright python

Project description

version codecov docs

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_playwright_enhanced-0.1.2.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page