Skip to content

Not able to replay KeyUp and KeyDown step #4

@jecfish

Description

@jecfish

Steps:

  1. Import this JSON file in Recorder. Add an example complete JSON file for extension builder to test puppeteer/replay#268
  2. Export it as WebDriverIO script.
  3. Observe the step { "type": "keyDown","key": "Escape"} is transform to
     await browser.performActions([{
      type: 'key',
      id: 'keyboard',
      actions: [{ type: 'keyDown', value: 'ESCAPE' }] 
    }])
    
  4. Run it with chromedriver
  5. Receive error invalid argument: 'value' must be a single Unicode code point [NOT OK]
  6. Change the value to \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.

'goog:chromeOptions': {
            w3c: true,
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions