From 9e44578d92b42b944fbc4474a266cd43b2c4e596 Mon Sep 17 00:00:00 2001 From: Alex Popov Date: Wed, 25 Jun 2025 23:31:45 +0700 Subject: [PATCH 1/2] Add extended and symbolic macOS/ChromeDriver key representations --- javascript/webdriver/key.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/javascript/webdriver/key.js b/javascript/webdriver/key.js index 759609afecb94..cfad4b3f2b28c 100644 --- a/javascript/webdriver/key.js +++ b/javascript/webdriver/key.js @@ -89,5 +89,15 @@ webdriver.Key = { F12: '\uE03C', COMMAND: '\uE03D', // Apple command key - META: '\uE03D' // alias for Windows key + META: '\uE03D', // alias for Windows key + + // Extended macOS/ChromeDriver keys + RIGHT_SHIFT: '\uE050', + RIGHT_CONTROL: '\uE051', + RIGHT_ALT: '\uE052', + RIGHT_COMMAND: '\uE053', + + // Symbolic macOS keys + OPTIONS: '\uE050', // TODO: verify Unicode value with WebDriver spec + FUNCTION: '\uE051' // TODO: symbolic only; confirm or remove in future }; From 2aaef21011905e0b8733599538635dd8608ebe3a Mon Sep 17 00:00:00 2001 From: Alex Popov Date: Thu, 26 Jun 2025 13:54:24 +0700 Subject: [PATCH 2/2] Fix Unicode value for macOS OPTIONS key in webdriver.Key --- javascript/webdriver/key.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/webdriver/key.js b/javascript/webdriver/key.js index cfad4b3f2b28c..acd0387bfc399 100644 --- a/javascript/webdriver/key.js +++ b/javascript/webdriver/key.js @@ -98,6 +98,6 @@ webdriver.Key = { RIGHT_COMMAND: '\uE053', // Symbolic macOS keys - OPTIONS: '\uE050', // TODO: verify Unicode value with WebDriver spec + OPTIONS: '\uE052', // TODO: verify Unicode value with WebDriver spec FUNCTION: '\uE051' // TODO: symbolic only; confirm or remove in future };