axe-core-python
Automated web accessibility testing using axe-core engine.
Documentation
Requirements
- Python >= 3.10
- selenium >= 4.4.0 or playwright >= 1.25.0
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.
Release files for axe-core-python 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| axe-core-python-0.1.0.tar.gz | 114.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| axe_core_python-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 230.1 kB
Release files / axe-core-python-0.1.0.tar.gz
| Download URL | axe-core-python-0.1.0.tar.gz |
|---|---|
| Size | 114.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a9af93a22f1b47da65be2b9878f83be39155ccc4c7286a8de8e4fc88a7a27c6
|
|
BLAKE2b-256 checksum How to use checksums |
bef4c85e943a3560e7f91cfe2c8cd85c47cbb504ba8b4303fc4affc0ad71a29a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.10.4 Windows/10
|
Release files / axe_core_python-0.1.0-py3-none-any.whl
| Download URL | axe_core_python-0.1.0-py3-none-any.whl |
|---|---|
| Size | 115.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f99f6bd674726c631c5e20b876983b44dff2b8f452a0ccf08f3c23ee45d0aac3
|
|
BLAKE2b-256 checksum How to use checksums |
251839196ff6c961685d2805f4d0fa7030e59983e413427c1cc8123247cf2bc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.10.4 Windows/10
|