browser.window.get#
Functions#
height()
#
position()
#
Get the X and Y coordinates of the top left corner of the browser window on the screen.
Returns:
Type | Description |
---|---|
tuple[int, int] | Coordinates of the top left corner of the browser window on the screen. |
Example
How to move the window relatively by getting the current position of the window and move it by 10 pixels in both axes, if possible: