Today I found a big issue with my Selenium autotests using Chrome Webdriver.
When Chrome is launched on any keyboard layout that is not English - any sendKeys command throws an error "WebDriverException: unknown error: Cannot construct KeyEvent from non-typeable key"
When Chrome is launched on English keyboard layout - everything works fine.
The problem is that when I run lots of autotests in headless - it blocks any other work on my machine, since I can't switch keyboard layouts.
Caused by: org.openqa.selenium.WebDriverException: unknown error: Cannot construct KeyEvent from non-typeable key
(Session info: chrome=98.0.4758.80)
Build info: version: '4.1.1', revision: 'e8fcc2cecf'
System info: host: 'CAB-WSM-0016015', ip: '192.168.1.30',
os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.2', java.version: '17'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command: [8b1b0985f7df799e6f75a6d49a329aeb, sendKeysToElement {id=9df8413d-3c91-4223-a7d4-14171e114c5b, value=[Ljava.lang.CharSequence;@7493d937}]
Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 98.0.4758.80, chrome: {chromedriverVersion: 98.0.4758.48 (d869ab3eda606..., userDataDir: /var/folders/4g/mz1k_6_93vz...}, goog:chromeOptions: {debuggerAddress: localhost:53820}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), se:cdp: ws://localhost:53820/devtoo..., se:cdpVersion: 98.0.4758.80, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Element: [[ChromeDriver: chrome on MAC (8b1b0985f7df799e6f75a6d49a329aeb)] -> css selector: input[name='q']]