FirefoxDriver.Commands.WebDriver.Window Class
Window related WebDriver endpoints see JsonWireProtocol
Item Index
Methods
acceptDialog
-
sessionId
Accepts the currently displayed alert dialog. Usually, this is equivalent to clicking on the 'OK' button in the dialog.
Parameters:
-
sessionIdGETID of the session to route the command to
alertText
-
sessionId -
text
Sends keystrokes to a JavaScript prompt() dialog.
Parameters:
-
sessionIdGETID of the session to route the command to
-
textPOSTKeystrokes to send to the prompt() dialog.
changeWindow
-
sessionId -
name
Change focus to another window. The window to change focus to may be specified by its server assigned window handle, or by the value of its name attribute.
Parameters:
-
sessionIdGETID of the session to route the command to
-
namePOSTName of the window to switch to
closeWindow
-
sessionId
Close the current window.
Parameters:
-
sessionIdGETID of the session to route the command to
dialogText
-
sessionId
Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog.
Parameters:
-
sessionIdGETID of the session to route the command to
dismissDialog
-
sessionId
Dismisses the currently displayed alert dialog. For confirm() and prompt() dialogs, this is equivalent to clicking the 'Cancel' button. For alert() dialogs, this is equivalent to clicking the 'OK' button.
Parameters:
-
sessionIdGETID of the session to route the command to
getOrientation
-
sessionId
Get the current browser orientation. The server should return a valid orientation value {LANDSCAPE|PORTRAIT}.
Parameters:
-
sessionIdGETID of the session to route the command to
getWindowPosition
-
sessionId -
windowHandle
Get the position of the specified window. If the :windowHandle URL parameter is "current", the position of the currently active window will be returned.
Parameters:
-
sessionIdGETID of the session to route the command to
-
windowHandleGETID of the window to route the command to
getWindowSize
-
sessionId -
windowHandle
Get the size of the specified window. If the :windowHandle URL parameter is "current", the size of the currently active window will be returned.
Parameters:
-
sessionIdGETID of the session to route the command to
-
windowHandleGETID of the window to route the command to
orientation
-
sessionId -
orientation
Set the browser orientation. Must be one of the two values {LANDSCAPE|PORTRAIT}.
Parameters:
-
sessionIdGETID of the session to route the command to
-
orientationPOSTThe new browser orientation {LANDSCAPE|PORTRAIT}.
windowHandle
-
sessionId
Retrieve the current window handle.
Parameters:
-
sessionIdGETID of the session to route the command to
windowHandles
-
sessionId
Retrieve the list of all window handles available to the session.
Parameters:
-
sessionIdGETID of the session to route the command to
windowMaximize
-
sessionId -
windowHandle
Maximize the specified window if not already maximized. If the :windowHandle URL parameter is "current", the currently active window will be maximized.
Parameters:
-
sessionIdGETID of the session to route the command to
-
windowHandleGETID of the window to route the command to
windowPosition
-
sessionId -
windowHandle
Change the position of the specified window. If the :windowHandle URL parameter is "current", the currently active window will be moved.
Parameters:
-
sessionIdGETID of the session to route the command to
-
windowHandleGETID of the window to route the command to
windowSize
-
sessionId -
windowHandle
Change the size of the specified window. If the :windowHandle URL parameter is "current", the currently active window will be resized.
Parameters:
-
sessionIdGETID of the session to route the command to
-
windowHandleGETID of the window to route the command to
