Skip to main content

Automated web accessibility testing using axe-core engine and Playwright.

Project description

axe-playwright-python

Automated web accessibility testing using axe-core engine and Playwright.

Documentation

Further Reading & More

Dependencies

Installation

python3 -m pip install -U axe-playwright-python
python3 -m playwright install --with-deps

Usage

from playwright.sync_api import sync_playwright
from axe_playwright_python.sync_playwright import Axe

axe = Axe()

with sync_playwright() as playwright:
    browser = playwright.chromium.launch()
    page = browser.new_page()
    page.goto("https://www.google.com")
    results = axe.run(page)
    browser.close()

print(f"Found {results.violations_count} violations.")
print(f"Full axe-core response: {results.response}")

For more examples see documentation.

Contributing

See guide on contributing.

Acknowledgments

This project is based on axe-core-python by @ruslan-rv-ua and also takes inspiration from axe-selenium-python for output formats.

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

axe_playwright_python-0.1.7.tar.gz (189.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axe_playwright_python-0.1.7-py3-none-any.whl (156.5 kB view details)

Uploaded Python 3

File details

Details for the file axe_playwright_python-0.1.7.tar.gz.

File metadata

  • Download URL: axe_playwright_python-0.1.7.tar.gz
  • Upload date:
  • Size: 189.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for axe_playwright_python-0.1.7.tar.gz
Algorithm Hash digest
SHA256 f0f3d59061abbaee9990d0309f855210ec8fd6ca5bf076f39210289ac0961258
MD5 ec3ba0a619a88db58e3ade8c848cbfd3
BLAKE2b-256 7490684e8ae7e7563318d197f1bfbacd561a19716e6cdb6420e7e97ef49d427c

See more details on using hashes here.

File details

Details for the file axe_playwright_python-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for axe_playwright_python-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8699e904466cc2206fa2fa414b4d59aab68e34ba8449c6d082896ca1950440e2
MD5 6798dd41d4db27424c039803e2cbf5ec
BLAKE2b-256 02b06460c11d515cb09d90993e948c730a3d4b6673cc5cd99663179bbc48a758

See more details on using hashes here.

Supported by

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