w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
679 stars 194 forks source link

Require pointerMove and wheel coordinates to be integers #1676

Closed jgraham closed 2 years ago

jgraham commented 2 years ago

Prevously we allowed these properties to be undefined, and then later tried to do computations on the values. That doesn't work; they either need to have an integer default value or require that a value is supplied.

Since implementations currently seem to raise an exception for these values being undefined, the easiest approach is to require that they are supplied, so that's what's implemented here.


Preview | Diff

jgraham commented 2 years ago

Tests in https://phabricator.services.mozilla.com/D152645

whimboo commented 2 years ago

@AutomatedTester could you maybe have a look? Thanks!