Accessibility checks

How to test an online shop with a keyboard

You do not need developer tools for a basic keyboard-accessibility check. Put the mouse aside and try to complete an important journey using only the keyboard. This form of interaction is used, for example, by people with limited motor skills, blind users working with a screen reader and people who temporarily find a mouse difficult to use.

A common problem: focus is lost or trapped

A form that works visually may be unusable without a mouse. Focus skips an important button, is not visible, remains behind a modal window or becomes trapped in a window that cannot be closed without a mouse. A simple manual walkthrough helps reveal these problems.

How to proceed

Open the home page, take your hands off the mouse and use these keys:

Now try to complete a purchase: find a product, add it to the basket, open the basket, enter delivery details, select delivery and payment, and reach the point where the order can be submitted.

What to look for along the way

Can you see where you are? The element that currently has focus must be clearly indicated with a border, outline or other highlight. If you press Tab and nothing changes on screen, focus may be invisible. One possible cause is removing the default outline without providing an adequate replacement.

Does focus move in a logical order? It should reflect the meaning and visual arrangement of the content. If it suddenly jumps from the header to the footer and then back to the middle of the page, the order in the code probably does not match the expected journey.

Can you reach the content quickly? A common solution is a “Skip to content” link that appears after the first press of the Tab key. WCAG also permits other mechanisms for bypassing repeated blocks. What matters is that the user does not have to move through the entire menu again every time a page loads.

Does a modal window trap you? Open a genuinely modal dialog, such as sign-in, size selection or confirmation that an item has been added to the basket. Focus should move inside it and remain there while the window is open. The dialog must have a keyboard-accessible way to close it. The Escape key is a conventional option. A problem exists if content “behind” the window can receive focus or the dialog cannot be closed without a mouse.

Do custom controls work? Also check elements a developer has built instead of using standard HTML controls: a star rating, quantity selector or custom delivery selection. Check whether they can receive focus at all.

Can you complete the basket journey? If you become stuck and cannot continue without a mouse, you have found a barrier that may prevent a purchase from being completed.

Prepare a journey you can complete safely

Use a test account, an available product and an environment where the order will not trigger a real payment or dispatch. On a public shop, you can check the journey up to the last step before submitting a binding order. If you do not perform that step, record that order completion remains unverified.

Record the browser, operating system, window size and login state. These details help reproduce the same conditions when a failure occurs. Start after the page loads, move forward and backward, and watch the current element’s highlight. After the basic walkthrough, repeat risky steps with enlarged content and a narrower window, where overlays or a different menu may appear.

Check what happens after your action changes the page

Tabbing through a freshly loaded page does not check the state after adding a product or encountering a form error. Prepare separate expectations for these transitions:

Action Practical check
Open the variant selector Reach the choices, select a value and continue without a mouse.
Change basket quantity The new quantity and recalculated amount are correct, and the controls remain usable.
Submit incomplete delivery details Find the invalid field, correct it and continue without losing the other details.
Remove an item Focus continues in a meaningful place even when the original button has disappeared.

In an illustrative test, leave the postal code empty, try to continue, and then supply it. Check that you can reach both the error explanation and the field to correct. Verify the announcement’s clarity for a screen reader separately. A visible red colour and a focusable field do not establish that.

Return to the task after closing a dialog

When selecting a product variant, note the element that opened the dialog. Focus usually returns to it after the dialog closes. If that element no longer exists or the task has moved on, focus should continue at a meaningful place in the workflow. The WAI-ARIA modal dialog pattern explains this distinction.

Test opening, moving through the content, moving backward with Shift + Tab, and closing. Keeping focus within an open modal is correct when users can close it. A trap occurs when they can neither continue nor leave. A non-modal panel, however, need not contain focus. First establish the behaviour the component is meant to provide.

A highlighted control must not remain hidden behind a bar

Check buttons near the bottom of the page with a cookie banner or fixed basket bar open. WCAG 2.4.11 at level AA addresses a focused component being entirely hidden by author-created content. It does not require every part of the component to be visible, which is addressed by the stricter AAA criterion. Focus-indicator visibility remains a separate check.

When assessing order, do not judge it only against a left-to-right sequence. WCAG’s focus-order guidance allows more than one logical sequence when meaning and operability are preserved. A finding should explain why a particular jump blocks the task or confuses the user.

Record a failure so a developer can reproduce it

Include the address, initial state, key sequence, last visible focus location and expected result. For example: “On the product page, I open the variant selector with Enter. After closing it, focus disappears and the next Tab starts in the header. I expect focus to return to the variant-selection button.” This is an illustrative finding, rather than an observation on a particular site.

After a fix, repeat those steps and the subsequent journey to the basket. Distinguish the failed step, successful checks and unverified parts in the report. A successful keyboard purchase with one account and browser is a useful result with a specific scope, rather than confirmation that the entire website is accessible.

What this test will not reveal

This test is valuable, but it shows only one layer. It does not tell you what a blind customer hears: whether a screen reader announces a field’s label, whether it announces a form error or remains silent while a red border appears visually. It does not assess whether alternative text is meaningful, whether contrast is sufficient or the order in which content is actually read.

Some keyboard scenarios and focus traps can be checked with automated functional tests. The result must nevertheless be supplemented by a manual walkthrough, because a scanner alone cannot assess the entire usability of the interface or the screen-reader experience. The topic what a scanner can and cannot detect explains this in more detail.

What this test gives you

You identify the precise point where a journey without a mouse stops and obtain reproducible steps for a developer. It is not a complete audit, but it is a practical first filter before more in-depth testing.

Next step

If you became stuck while tabbing through the page, record the page, the step and the expected behaviour. During a no-obligation consultation, we can determine what should be checked manually and what is worth monitoring with an automated test.

Related topics

You might also be interested in

Catch new accessibility issues during the release process

Automated checks may highlight new machine-detectable errors in already checked parts at release.