axe-core-python-0.1.0
توضیحات
Automated web accessibility testing using axe-core engine.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | axe-core-python-0.1.0 |
| نام | axe-core-python |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ruslan Iskov |
| ایمیل نویسنده | ruslan.rv.ua@gmail.com |
| آدرس صفحه اصلی | https://github.com/ruslan-rv-ua/axe-core-python |
| آدرس اینترنتی | https://pypi.org/project/axe-core-python/ |
| مجوز | MIT |
# axe-core-python




Automated web accessibility testing using [axe-core](https://github.com/dequelabs/axe-core) engine.
## Documentation
- [Full documentation](https://ruslan-rv-ua.github.io/axe-core-python/).
## Requirements
- Python >= 3.10
- [selenium](https://www.selenium.dev) >= 4.4.0
or [playwright](https://github.com/microsoft/playwright-python) >= 1.25.0
## Installation
```console
pip install -U axe-core-python
```
## Usage
```python
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](https://ruslan-rv-ua.github.io/axe-core-python/).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl axe-core-python-0.1.0:
pip install axe-core-python-0.1.0.whl
نصب پکیج tar.gz axe-core-python-0.1.0:
pip install axe-core-python-0.1.0.tar.gz