Bug 246784

Summary: ERROR message: Encountered key input source with invalid 'value' in payload on WPT
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: bburg, gsnedders, pangle, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
URL: https://wpt.fyi/results/input-events/input-events-typing.html?label=experimental&label=master&aligned

Description Karl Dubost 2022-10-19 18:03:19 PDT
Steps to reproduce:

1. Go to https://wpt.fyi/results/input-events/input-events-typing.html?label=experimental&label=master&aligned
2. Select Show Details on the top right

Expected:
FAIL or PASS

Actual:
Error message from Webdriver.
webdriver.error.InvalidArgumentException: invalid argument (400): Encountered key input source with invalid 'value' in payload



```
ERROR message: Encountered key input source with invalid 'value' in payload: {
    actions =     (
                {
            type = keyDown;
            value = "\U2318";
        },
                {
            type = keyDown;
            value = z;
        },
                {
            type = keyUp;
            value = z;
        },
                {
            type = keyUp;
            value = "\U2318";
        }
    );
    id = 3;
    type = key;
}
Traceback (most recent call last):
  File "/Users/runner/work/1/s/tools/wptrunner/wptrunner/executors/executorwebdriver.py", line 431, in run_func
    self.result = True, self.func(self.protocol, self.url, self.timeout)
  File "/Users/runner/work/1/s/tools/wptrunner/wptrunner/executors/executorwebdriver.py", line 537, in do_testharness
    done, rv = handler(result)
  File "/Users/runner/work/1/s/tools/wptrunner/wptrunner/executors/base.py", line 724, in __call__
    return callback(url, payload)
  File "/Users/runner/work/1/s/tools/wptrunner/wptrunner/executors/base.py", line 740, in process_action
    result = action_handler(payload)
  File "/Users/runner/work/1/s/tools/wptrunner/wptrunner/executors/actions.py", line 112, in __call__
    self.protocol.action_sequence.send_actions({"actions": actions})
  File "/Users/runner/work/1/s/tools/wptrunner/wptrunner/executors/executorwebdriver.py", line 249, in send_actions
    self.webdriver.actions.perform(actions['actions'])
  File "/Users/runner/work/1/s/tools/webdriver/webdriver/client.py", line 22, in inner
    return func(self, *args, **kwargs)
  File "/Users/runner/work/1/s/tools/webdriver/webdriver/client.py", line 283, in perform
    actions = self.session.send_session_command("POST", "actions", body)
  File "/Users/runner/work/1/s/tools/webdriver/webdriver/client.py", line 661, in send_session_command
    return self.send_command(method, url, body, timeout)
  File "/Users/runner/work/1/s/tools/webdriver/webdriver/client.py", line 625, in send_command
    raise err
webdriver.error.InvalidArgumentException: invalid argument (400): Encountered key input source with invalid 'value' in payload: {
    actions =     (
                {
            type = keyDown;
            value = "\U2318";
        },
                {
            type = keyDown;
            value = z;
        },
                {
            type = keyUp;
            value = z;
        },
                {
            type = keyUp;
            value = "\U2318";
        }
    );
    id = 3;
    type = key;
}
```
Comment 1 Radar WebKit Bug Importer 2022-10-20 17:29:20 PDT
<rdar://problem/101406508>
Comment 2 Sam Sneddon [:gsnedders] 2022-10-20 17:29:41 PDT
This is a safaridriver bug, not a WebKit Automation protocol bug.