w3c / w3c/webdriver

Scrolling element into view for `Element Send Keys` is unclear

Open
#1,155 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

https://w3c.github.io/webdriver/webdriver-spec.html#element-send-keys

14.3 Element Send Keys

The Element Send Keys command scrolls into view the form control element and then sends the
provided keys to the element.

The scroll attempt should not only be done for form elements, but at least also for contenteditable elements. Further there are focusable elements like HTMLAnchorElement, which we might also want to bring into view if possible.

So maybe we can make use of the following step?

The Element Send Keys command scrolls into view the focusable element, and ...

Also it would be good to explain how to detect if an element is focusable. Simply by checking for the presence of the focus method on the element is not enough given that it is present even for HTMLElement.

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 with the Element Send Keys section in the linked WebDriver specification. Determine how scrolling should apply to contenteditable and other focusable elements, and how focusability should be defined beyond checking for a focus method. Done means the specification clearly identifies the scrolling target and provides an unambiguous focusability rule; no file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.