One would think that this should be an easy thing to do, but I cannot find a way to detect whether the Chromium Edge Selenium webdriver Window is minimized or not in Powershell.
Specifically, the size and position of a Window seems to be the same regardless of whether or not it is in a maximized or minimized state. For example, take the following example (starting from a normal non-minimized window state):
> $driver.manage().Window.size
IsEmpty Width Height
------- ----- ------
False 1050 708
> $driver.manage().Window.position
IsEmpty X Y
------- - -
False 13 18
> $driver.manage().Window.minimize()
> $driver.manage().Window.size
IsEmpty Width Height
------- ----- ------
False 1050 708
> $driver.manage().Window.position
IsEmpty X Y
------- - -
False 13 18
As you can see, the Window size and position remain the same even though the Window has been minimized.
I can't find a isMinimized()
method or something similar anywhere either.
The Chromium Edge webdriver version is 93.0.961.38.
Any ideas?