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:
-
sessionId
GETID of the session to route the command to
alertText
-
sessionId
-
text
Sends keystrokes to a JavaScript prompt() dialog.
Parameters:
-
sessionId
GETID of the session to route the command to
-
text
POSTKeystrokes 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:
-
sessionId
GETID of the session to route the command to
-
name
POSTName of the window to switch to
closeWindow
-
sessionId
Close the current window.
Parameters:
-
sessionId
GETID of the session to route the command to
dialogText
-
sessionId
Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog.
Parameters:
-
sessionId
GETID 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:
-
sessionId
GETID 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:
-
sessionId
GETID 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:
-
sessionId
GETID of the session to route the command to
-
windowHandle
GETID 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:
-
sessionId
GETID of the session to route the command to
-
windowHandle
GETID 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:
-
sessionId
GETID of the session to route the command to
-
orientation
POSTThe new browser orientation {LANDSCAPE|PORTRAIT}.
windowHandle
-
sessionId
Retrieve the current window handle.
Parameters:
-
sessionId
GETID of the session to route the command to
windowHandles
-
sessionId
Retrieve the list of all window handles available to the session.
Parameters:
-
sessionId
GETID 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:
-
sessionId
GETID of the session to route the command to
-
windowHandle
GETID 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:
-
sessionId
GETID of the session to route the command to
-
windowHandle
GETID 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:
-
sessionId
GETID of the session to route the command to
-
windowHandle
GETID of the window to route the command to