From ab36dfd6ea44e6b3ce693dc3685d8808303fe9e7 Mon Sep 17 00:00:00 2001 From: Psychpsyo <60073468+Psychpsyo@users.noreply.github.com> Date: Thu, 19 Sep 2024 00:50:48 +0200 Subject: [PATCH 1/2] Fix typo in webdriver docs --- resources/testdriver-actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/testdriver-actions.js b/resources/testdriver-actions.js index 3e5ba74b4cab35..edb4759954d4c3 100644 --- a/resources/testdriver-actions.js +++ b/resources/testdriver-actions.js @@ -290,7 +290,7 @@ }, /** - * Create a keyDown event for the current default key source + * Create a keyUp event for the current default key source * * @param {String} key - Key to release * @param {String?} sourceName - Named key source to use or null for the default key source From 2b61d973ef272127d9dbcb3549ec96f1660c8602 Mon Sep 17 00:00:00 2001 From: Psychpsyo <60073468+Psychpsyo@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:37:13 +0200 Subject: [PATCH 2/2] Update testdriver-actions.js --- resources/testdriver-actions.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/testdriver-actions.js b/resources/testdriver-actions.js index edb4759954d4c3..676d6baf3fb090 100644 --- a/resources/testdriver-actions.js +++ b/resources/testdriver-actions.js @@ -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 + * `_. + * * @param {String} key - Key to press * @param {String?} sourceName - Named key source to use or null for the default key source * @returns {Actions} @@ -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 + * `_. + * * @param {String} key - Key to release * @param {String?} sourceName - Named key source to use or null for the default key source * @returns {Actions}