Skip to content

Commit

Permalink
added special keys note (#10403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathon Kereliuk authored and jgraham committed Apr 10, 2018
1 parent 1e801bf commit e504871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/_writing-tests/testdriver.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@ Note that if the element that's keys need to be send to does not have
a unique ID, the document must not have any DOM mutations made
between the function being called and the promise settling.

To send special keys, one must send the respective key's codepoint. Since this uses the WebDriver protocol, you can find a list for code points to special keys in the spec (here)[https://w3c.github.io/webdriver/webdriver-spec.html#keyboard-actions].
For example, to send the tab key you would send "\uE004".

[testharness]: {{ site.baseurl }}{% link _writing-tests/testharness.md %}

0 comments on commit e504871

Please sign in to comment.