Skip to main content

Automated web accessibility testing using axe-core engine.

Project description

axe-core-python

PyPI PyPI - License PyPI - Python Version PyPI - Downloads

Automated web accessibility testing using axe-core engine.

Documentation

Requirements

Installation

pip install -U axe-core-python

Usage

from playwright.sync_api import sync_playwright
from axe_core_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")
    result = axe.run(page)
    browser.close()

violations = result['violations']
print(f"{len(violations)} violations found.")

For more examples see documentation.

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-core-python-0.1.0.tar.gz (114.3 kB view hashes)

Uploaded Source

Built Distribution

axe_core_python-0.1.0-py3-none-any.whl (115.8 kB view hashes)

Uploaded Python 3

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