browser.window.set#
Functions#
position(x, y)
#
If possible, move the window to the chosen coordinate of the screen.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x | int | In pixels. Absolute X coordinate of the screen on the horisontal axis. | required |
y | int | In pixels. Absolute Y coordinate of the screen on the vertical axis. | required |
size(width, height)
#
If possible, restore the window and set the window size.
Note
Window size is not the same as the viewport size. The viewport is often smaller than the browser window that needs space for menus and buttons.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
width | int | Width of the window in pixels. | required |
height | int | Height of the window in pixels. | required |