axe-selenium-python-dev was forked from https://github.com/mozilla-services/axe-selenium-python on date 29/10/2020 all credits to them, there was no official pypi distribution available which supports axe-core 3.3.2 so took the opportunity to create this to support others like us
This version of axe-selenium-python-dev supports all changes in repo https://github.com/mozilla-services/axe-selenium-python before date 29/10/2020
This version of axe-selenium-python-dev is using axe-core@3.3.2.
Requirements
You will need the following prerequisites in order to use axe-selenium-python:
selenium >= 3.0.0
Python 2.7 or 3.6
The appropriate driver for the browser you intend to use, downloaded and added to your path, e.g. geckodriver for Firefox:
geckodriver downloaded and added to your PATH
Installation
To install axe-selenium-python-dev:
$ pip install axe-selenium-python-dev
Usage
from selenium import webdriver
from axe_selenium_python import Axe
def test_google():
driver = webdriver.Firefox()
driver.get("http://www.google.com")
axe = Axe(driver)
# Inject axe-core javascript into page.
axe.inject()
# Run axe accessibility checks.
results = axe.run()
# Write results to file
axe.write_results(results, 'a11y.json')
driver.close()
# Assert no violations are found
assert len(results["violations"]) == 0, axe.report(results["violations"])
The method axe.run() accepts two parameters: context and options.
For more information on context and options, view the aXe documentation here.
Resources
CHANGELOG
version 2.4.0
Remove unused build modules
version 2.3.0
Axe-core node modules min file updated from 2.3.1 to 3.3.2
version 2.2.0
Axe-core node modules 3.3.2 path updated
version 2.1.0
Axe-core node modules 3.3.2 path updated
version 2.0.0
Axe-core node modules 3.3.2 updated
version 1.2.0
Updated to install node modules
version 1.1.1
Updated readme
version 1.1.0
Created package.json file to maintain axe-core dependency
version 1.0.0
Forked https://github.com/mozilla-services/axe-selenium-python updated code and initial pypi deploy
Release files for axe-selenium-python-dev 2.4.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-selenium-python-dev-2.4.0.tar.gz | 262.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| axe_selenium_python_dev-2.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 525.4 kB
Release files / axe-selenium-python-dev-2.4.0.tar.gz
| Download URL | axe-selenium-python-dev-2.4.0.tar.gz |
|---|---|
| Size | 262.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19417c550fa5aa434c3b3f4072f7fe9b5753074cf640213063ba6bb7e9f867de
|
|
BLAKE2b-256 checksum How to use checksums |
0b29edf8bd594bc03a17d231d68a573a86076597659ae05237e33d0fd2c9c2c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.3
|
Release files / axe_selenium_python_dev-2.4.0-py2.py3-none-any.whl
| Download URL | axe_selenium_python_dev-2.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 262.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
79f1bb44f0b78b1cd81b700d7975f176c891b82ac7629814bec345a628d0fd2e
|
|
BLAKE2b-256 checksum How to use checksums |
11e7c48495b66043e215a41f3998af95e59b5d22e1df64ac2891c4fe5d85fa65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.3
|