Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint for sequential focus navigation #1438

Open
foolip opened this issue Aug 2, 2019 · 2 comments
Open

Endpoint for sequential focus navigation #1438

foolip opened this issue Aug 2, 2019 · 2 comments

Comments

@foolip
Copy link
Member

foolip commented Aug 2, 2019

This is a clone of whatwg/html#4151, since this could be defined either in WebDriver or in HTML.

The bit that requires a WebDriver endpoint:
https://html.spec.whatwg.org/multipage/interaction.html#sequential-focus-navigation

The algorithm starting with "When the user requests that focus move" is typically invoked by pressing the TAB key, but this may not be universally true. Having a WebDriver API for this would make it possible to trigger focus navigation without making such assumptions.

Straw proposal: An endpoint /session/{session id}/focus to which one would POST { "direction": "forward" } or { "direction": "backward" }.

This would help resolve web-platform-tests/wpt#13379, although it is not the only way it could be resolved.

@christian-bromann
Copy link
Member

@foolip this action can technically also be triggered with the actions command, no?

@foolip
Copy link
Member Author

foolip commented Aug 2, 2019

@christian-bromann do you mean by sending TAB or Shift-TAB input? That is indeed what was done in https://github.com/web-platform-tests/wpt/pull/17523/files#diff-6d8e45f94b9f120a854ec188b4857275R67 and it presumably work, but the question is if it works on all browsers. Although I can't find the discussion now, I'm pretty sure @jgraham raised this doubt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants