Bug 246784 - ERROR message: Encountered key input source with invalid 'value' in payload on WPT
Summary: ERROR message: Encountered key input source with invalid 'value' in payload o...
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://wpt.fyi/results/input-events/...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-19 18:03 PDT by Karl Dubost
Modified: 2022-10-20 17:29 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.