w3c / webdriver

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

Allow ignoring position or dimensions in set window rect #1830

Closed jgraham closed 4 months ago

jgraham commented 4 months ago

Previously it was unclear if it was acceptable to return without error from set window rect if the implementation is unable to set some of the properties.

This updates the spec so that:


Preview | Diff

OrKoN commented 4 months ago

cc @nechaev-chromium

jgraham commented 4 months ago

After merging this I noticed we have some uniformly passing tests that assume that input like {x: 200} is just silently ignored rather than either producing an error or setting the x-coordinate to 200 (where possible). Silently ignoring broken input seems like bad design, but I guess I should revert that part on the basis that's the defacto behviour.