w3c / w3c/webdriver

Trigger sequential (and spatial) focus movements

Open
#1,312 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

To be able to test sequential navigation (and also spatial navigation) in WPT, we need a WebDriver method for moving focus: forward, backward (and also up, down, left, right).

We cannot use WebDriver's "send keys"-method because:

  1. Browsers might use different key-mappings even though typically tab-key is used.
  2. Send keys might do unwanted scrolling.
  3. We do not want to target a specific element.

We simply want the browser to move focus in whatever browser-dependent way it likes (and resolve a promise once it has done so).

As of now, Chrome's sequential and spatial navigation tests must use eventSender. This blocks us from upstreaming all these tests to WPT.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the WPT focus-navigation needs described here, the linked spatial-navigation issue, and Chrome's existing eventSender-based tests. Determine how a WebDriver method should cover forward, backward, up, down, left, and right movement without targeting an element or causing unwanted scrolling. Done means the method is specified and supports upstreaming the affected sequential and spatial navigation tests to WPT.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.