Closed jecfish closed 2 years ago
Steps:
{ "type": "keyDown","key": "Escape"}
await browser.performActions([{ type: 'key', id: 'keyboard', actions: [{ type: 'keyDown', value: 'ESCAPE' }] }])
invalid argument: 'value' must be a single Unicode code point
\x1B
Expect the keyboard action map to unicode correctly.
Notes:
When the error happen, I tried to search for relevant official documentation, no useful info found.
Search online randomly return some suggests to add a config. Doesn't work either.
'goog:chromeOptions': { w3c: true, },
Thanks for raising the issue.
Sending ESCAPE is not quite correct here. WebdriverIO has a table to map these value to an unicode character.
ESCAPE
fixed and published as v0.3.3
v0.3.3
Steps:
{ "type": "keyDown","key": "Escape"}
is transform toinvalid argument: 'value' must be a single Unicode code point
[NOT OK]\x1B
. Step executed successfully.Expect the keyboard action map to unicode correctly.
Notes:
When the error happen, I tried to search for relevant official documentation, no useful info found.
Search online randomly return some suggests to add a config. Doesn't work either.