Open Bug 1941404 Opened 1 year ago Updated 8 months ago

Allow to adjust properties of the window geometry ("x", "y", "width", and "height") individually

Categories

(Remote Protocol :: Agent, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned, Mentored)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [lang=py])

The PR https://github.com/w3c/webdriver/pull/1830/files on the WebDriver repository changed the way how the Set Window Rect command works. Formerly it was only possible to change the window position when providing both x and y, and changing the dimensions by providing both the width and height. This is now no longer required and it is enough to specify a single value (for the other the current value is used) or even none (nothing will change).

No current browser supports that yet, so we could get started to create those tests once the patch on bug 1855028 was landed - it sets that behavior for not only BiDi but also classic.

Mentor: hskupin
Priority: -- → P3
Whiteboard: [lang=py]

Given that the adjustWindowGeometry() helper is now in the shared WindowManager module a change would affect both of our Marionette and WebDriver BiDi implementations. As such the following work is needed here:

  1. Update the code of the adjustWindowGeometry() method to allow setting the properties individually
  2. Update and enhance the WebDriver tests for Marionette.
  3. Do the same additions / changes for WebDriver BiDi.
Component: Marionette → Agent
Summary: [wdspec] Enhance tests for "Set Window Rect" to allow setting "x", "y", "width", and "height" individually → Allow to adjust properties of the window geometry ("x", "y", "width", and "height") individually

We will get updated Webdriver classic tests via bug 1975143.

Depends on: 1975143
You need to log in before you can comment on or make changes to this bug.