Skip to content

About

Automated web accessibility testing with axe-core

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

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.

About

Automated web accessibility testing with axe-core

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages