Screen Reader Testing — UI/UX

Screen reader testing means using the page with a real screen reader, following a test script (a list of steps written beforehand), and writing down what you…

Watch a video of a blind person using a phone. The screen reader talks fast, and their finger jumps from heading to heading without listening to the whole page. You can't judge your page just by looking at it. You have to listen to it the same way.

Judging a page this way is called screen reader testing. You use the page the way a blind user does, with a real screen reader. You follow a test script, a list of steps written beforehand, and write down what you hear.

In the web accessibility basics lesson, a screen reader was Mrs. Sri reading the page to you over the phone. Now you're the inspector. You call with a list of questions ("read me the title", "what's the next button?", "press that button, what happens?"), then write down every answer, word for word. That list of questions is your test script, and the answers you write down are your test notes.

Screen readers and their pairs

A screen reader works in a pair with a browser. The reason: a screen reader reads the accessibility tree, and the browser is what builds that tree. Here are four screen readers and their common browser pairs:

Screen reader System Cost Common pair
NVDA Windows free (NV Access) Chrome, Firefox
JAWS Windows paid Chrome, Edge
VoiceOver macOS, iOS built in Safari
TalkBack Android built in Chrome

The usage numbers come from the WebAIM Screen Reader User Survey #10, WebAIM's survey of screen reader users (December 2023 to January 2024, 1,539 respondents):

At the very least, test with one desktop pair (NVDA with Chrome, both free) and one phone pair (VoiceOver with Safari on an iPhone, or TalkBack with Chrome on Android).

The commands you need

The table below holds the basic commands of each screen reader. In NVDA, many commands use the NVDA key, which is Insert. In VoiceOver on a Mac, VO means two keys pressed together: Control+Option. Two other words in the table need explaining. The rotor is a VoiceOver menu that holds lists of headings, links, landmarks and form controls. A reading control is a TalkBack setting that decides where a swipe down (or up) takes you: to the next heading, the next link, and so on.

Task NVDA (NVDA key = Insert) VoiceOver macOS (VO = Control+Option) TalkBack
Turn on Ctrl+Alt+N Command+F5 hold both volume keys for 3 seconds (if the shortcut is on)
Next item down arrow VO+right arrow swipe right
Press Enter VO+Space double-tap
Next heading H (1 to 6 for a level) VO+Command+H pick the Headings reading control, then swipe down
List of headings, links, landmarks NVDA+F7 VO+U (the rotor; left and right arrows switch lists) no list; jump with a reading control
Next link, landmark K, D through the rotor the Links reading control
Stop speaking Ctrl Control two-finger tap (pause, TalkBack 9.1 and up)

In NVDA, NVDA+Q quits NVDA. NVDA+Space switches between two modes: browse mode (reading the page with letter keys, such as H and K) and focus mode (typing in a field). In TalkBack, you pick a reading control by swiping up then down (or with a three-finger swipe down). The TalkBack menu opens with a swipe down then right (or a three-finger tap). These commands come from the official documentation of NV Access (the makers of NVDA), Apple and Google.

To check the heading order with VoiceOver without listening to the whole page, press VO+U, then open the Headings list in the rotor. In NVDA, NVDA+F7 opens the same list.

A test script for the booking page

Write the script first, then run it with exactly the same steps on every pair. The "Must be heard" column comes from the accessibility tree: role, name and state. The spoken words differ from one screen reader to another, so you check the meaning, not the exact words.

No Step Must be heard
1 Open the page the title "Terrace Room · Mist Homestay", read with an English voice (lang="en")
2 Headings list h1 "Terrace Room", h2 "House rules", h2 "Location", no level skipped
3 Landmarks list banner, navigation "Main navigation", main, contentinfo
4 Next item through the photo and the map "Terrace Room: a double bed...", image; the route map with its content; the decorative mist line is silent
5 Tab to the nights group "Length of stay", "2 nights", radio, checked
6 Tab to the Book button, press it "Book the room, pay on arrival", button; then the news "Booking sent..." without focus moving
7 Links list every link makes sense alone, for example "Read the full house rules"

At every step, listen for these six things:

Write down findings

A finding is a problem you hear during the test. Write each finding so someone else can repeat it. NVDA has a Speech Viewer (in the NVDA menu, Tools), a window that shows what NVDA says as text. VoiceOver has a caption panel that does the same. Copy the words from there. Here is an example of the note format for three problems on Mrs. Sri's page. It holds example notes, not a recording of tests we ran:

No Step What was heard Problem WCAG Pair
1 7, links list "Click here", link doesn't say where it goes; without the sentence before it, the meaning is lost 2.4.4 Link Purpose (In Context), A NVDA + Chrome, write the versions
2 4, route map an image with no name (some screen readers read the file name) <img> with no alt 1.1.1 Non-text Content, A VoiceOver + Safari, write the versions
3 6, after Book nothing is read a toast with no live region 4.1.3 Status Messages, AA TalkBack + Chrome, write the versions

The fixes for those three findings:

For a picture of a chart, the alt states its conclusion, not the kind of picture. Some screen readers read the file name when there is no alt, and a file name like "chart.png" helps nobody.

The Pair column must include the versions of the screen reader and the browser. The reason: a finding that shows up on one pair doesn't always show up on another.

What you can and can't check without a screen reader

Say the Accessibility tab in Chrome DevTools shows button "Book the room, pay on arrival" and link "Click here". Both have a role and a name. Is that enough to say the page works for screen reader users? Guess first.

Chromium's accessibility tree shows what the browser hands over to the screen reader: role, name, state, whether the element is hidden, whether it can take focus, and the live region's settings. You can see it in DevTools, in the Accessibility tab. An automated test program can read it with Accessibility.getFullAXTree, a command in the Chrome DevTools Protocol (a way to read what is inside Chrome from code). That tree is what we checked for this lesson and its Lab.

What the tree doesn't show:

We didn't run NVDA, VoiceOver or TalkBack for this lesson. Chromium's tree is only an estimate, not a screen reader.

So the answer to the guess: not yet. Technically the tree is right: the button has a role and a name, and so does the link. But link "Click here" means nothing when heard in a links list, without the sentence before it. A problem like that only shows up when you actually listen to the page.

⚠️ Why the test passes but users still get lost

TL;DR: Screen reader testing means using the page with a real screen reader, following a test script (a list of steps written beforehand), and writing down what you hear. A screen reader works in a pair with a browser: NVDA (free) or JAWS with Chrome on Windows, VoiceOver with Safari on Mac and iPhone, TalkBack with Chrome on Android. In WebAIM's survey #10 of screen reader users, the primary desktop screen readers were JAWS (40.5%), NVDA (37.7%) and VoiceOver (9.7%). 91.3% also use one on a phone, and 71.6% jump by headings. Core commands, in the order NVDA, VoiceOver, TalkBack: next item (down arrow, VO+right arrow, swipe right), press (Enter, VO+Space, double-tap), and the headings list (NVDA+F7, or VO+U for the rotor, VoiceOver's menu of lists). VO is Control+Option. A test script lists the steps and what must be heard: role, name, state, order, silence on decoration, and changes being read out. Each finding is written with its step, the text heard (from NVDA's Speech Viewer or VoiceOver's caption panel), its WCAG criterion (a "Click here" link fails 2.4.4, an image with no alt 1.1.1, a toast with no live region 4.1.3), and the pair with its versions. Chromium's accessibility tree shows what the browser hands over, not what is heard: it's an estimate, not a screen reader.

⚡ A screen reader always comes in a pair

Meaning: A screen reader reads the accessibility tree the browser builds, so you test one screen reader and browser pair at a time: NVDA or JAWS with Chrome on Windows, VoiceOver with Safari on Mac and iPhone, TalkBack with Chrome on Android. The core commands: next item (down arrow in NVDA, VO+right arrow in VoiceOver, swipe right in TalkBack) and press (Enter, VO+Space, double-tap). VO is Control+Option, pressed together.

⚡ The heading order without hearing everything

Guess first: you want to check a page's heading order with VoiceOver. VO+right arrow reads one item at a time from the top, so you would have to listen to the whole page. Is there a faster way?

Yes. Press VO+U to open the rotor (a VoiceOver menu with lists of headings, links and landmarks), then open the Headings list. In NVDA, NVDA+F7 opens the same list.

Meaning: Screen reader users often jump by headings, so an h1, h2, h3 order that skips no level matters.

⚡ A right tree isn't always right to hear

Guess first: the Accessibility tab in DevTools (where you see the accessibility tree) shows button "Book the room, pay on arrival" and link "Click here". Both have a role and a name. Is that enough for screen reader users?

Not yet. link "Click here" means nothing when heard alone in a links list, and it fails WCAG 2.4.4.

Meaning: The accessibility tree only shows what the browser hands over, not what is heard. So write the test script first (the steps and what must be heard). Run it exactly the same way on every pair, then note the step, what was heard, the WCAG criterion and the pair with its versions.

What you will learn