🪓axe
Accessibility (A11y) Testing with aXe
Usage
def test_axe_fixture(py, axe):
py.visit("https://qap.dev")
# save the axe report as a file
report = axe.run(name="a11y_audit.json")
# and/or use the report directly in the test(s)
assert len(report.violations) == 0def run(name: str = None, context: Dict = None, options: Dict = None) -> AxeReportArguments
Yields
Last updated