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

Document send keys #903

Closed
wants to merge 2 commits into from
Closed

Document send keys #903

wants to merge 2 commits into from

Conversation

veith
Copy link

@veith veith commented Apr 26, 2017

If you want to test keyboard navigation, you have to send keys "directly to the browser" without selecting an element before.

In the jsonWireProtokoll was a command for doing that. (https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidkeys) .

I suggest to place it in section 15 (Document Handling), because activeElement is on the document itself (https://developer.mozilla.org/en/docs/Web/API/Document/activeElement), but maybe this is totally wrong.


This change is Reviewable

@andreastt
Copy link
Member

You can use the actions API to send arbitrary keys without selecting the element first. But to be honest, you could also use Element Send Keys against the document element if you wanted to do that, with the added safety checks it provides.

@veith
Copy link
Author

veith commented Apr 26, 2017

@andreastt Thank you for the hint with the actions API.

@veith veith closed this Apr 26, 2017
@veith veith deleted the document/send-keys branch April 26, 2017 13:18
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

Successfully merging this pull request may close these issues.

2 participants