Skip to content

browser.window.get#

Functions#

height() #

Get the height of browser window on the screen in pixels.

Returns:

Type Description
int

Height of browser window on the screen in pixels.

Example
height = browser.window.get.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
x, y = browser.window.get.position()

size() #

Get width and height of browser window on the screen in pixels.

Returns:

Type Description
tuple[int, int]

Width and height of browser window on the screen in pixels.

Example
width, height = browser.window.get.size()

width() #

Get the width of browser window on the screen in pixels.

Returns:

Type Description
int

Width of browser window on the screen in pixels.

Example
width = browser.window.get.width()