Accessibility · Middle · Question 66 of 75
How do you run axe in Playwright tests?
- 1Use
@axe-core/playwrightto scan the page and assert no violations - 2Call
page.screenReader.start()before each of the test steps - 3Set
accessibility: truein theplaywright.config.tssettings file
Show the answer
Correct answer: Use @axe-core/playwright to scan the page and assert no violations
Explanation
It finds rule-based problems in real pages. You can scan after interactions, for example with a dialog open.