Playwright · Middle · Question 64 of 75
How can you check a page for accessibility issues in a Playwright test?
- 1Call the built-in
expect(page).toBeAccessible() - 2Run axe-core via
@axe-core/playwright - 3Run the test with the
--a11yflag
Show the answer
Correct answer: Run axe-core via @axe-core/playwright
Explanation
Axe finds many issues like missing labels or low contrast. Manual checks are still needed for others.