Window

This is a JavaScript wrapper for Window of Selenium .NET library.

Action Summary

Action Description
FullScreen Sets the current window to full screen if it is not already in that state.
GetPosition Gets the position of the browser window relative to the upper-left corner of the screen.
GetSize Gets the size of the outer browser window, including title bars and window borders.
Maximize Maximizes the current window if it is not already maximized.
Minimize Minimizes the current window if it is not already minimized.
SetPosition Sets the position of the browser window relative to the upper-left corner of the screen.
SetSize Sets the size of the outer browser window, including title bars and window borders.

Action Detail

FullScreen()

Sets the current window to full screen if it is not already in that state.

GetPosition()

Gets the position of the browser window relative to the upper-left corner of the screen.

GetSize()

Gets the size of the outer browser window, including title bars and window borders.

Maximize()

Maximizes the current window if it is not already maximized.

Minimize()

Minimizes the current window if it is not already minimized.

SetPosition(x, y)

Sets the position of the browser window relative to the upper-left corner of the screen.

Parameters:

Name Type Description
x number
y number

SetSize(width, height)

Sets the size of the outer browser window, including title bars and window borders.

Parameters:

Name Type Description
width number
height number