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

Add info on the key names that keyUp() and keyDown() accept. #48257

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions resources/testdriver-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@
/**
* Create a keyDown event for the current default key source
*
* To send special keys, send the respective key's codepoint,
* as defined by `WebDriver
* <https://w3c.github.io/webdriver/#keyboard-actions>`_.
*
* @param {String} key - Key to press
* @param {String?} sourceName - Named key source to use or null for the default key source
* @returns {Actions}
Expand All @@ -292,6 +296,10 @@
/**
* Create a keyUp event for the current default key source
*
* To send special keys, send the respective key's codepoint,
* as defined by `WebDriver
* <https://w3c.github.io/webdriver/#keyboard-actions>`_.
*
* @param {String} key - Key to release
* @param {String?} sourceName - Named key source to use or null for the default key source
* @returns {Actions}
Expand Down
Loading