Package org.openqa.selenium.remote
Class RemoteWebDriver.RemoteWebDriverOptions.RemoteWindow
java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions.RemoteWindow
- All Implemented Interfaces:
WebDriver.Window
- Enclosing class:
RemoteWebDriver.RemoteWebDriverOptions
@Beta
protected class RemoteWebDriver.RemoteWebDriverOptions.RemoteWindow
extends Object
implements WebDriver.Window
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFullscreen the current window if it is not already fullscreenGet the position of the current window, relative to the upper left corner of the screen.getSize()Get the size of the current window.voidmaximize()Maximizes the current window if it is not already maximizedvoidminimize()Minimizes the current window if it is not already minimizedvoidsetPosition(Point targetPosition) Set the position of the current window.voidSet the size of the current window.
-
Constructor Details
-
RemoteWindow
protected RemoteWindow()
-
-
Method Details
-
getSize
Description copied from interface:WebDriver.WindowGet the size of the current window. This will return the outer window dimension, not just the view port.See W3C WebDriver specification for more details.
- Specified by:
getSizein interfaceWebDriver.Window- Returns:
- The current window size.
-
setSize
Description copied from interface:WebDriver.WindowSet the size of the current window. This will change the outer window dimension, not just the view port, synonymous to window.resizeTo() in JS.See W3C WebDriver specification for more details.
- Specified by:
setSizein interfaceWebDriver.Window- Parameters:
targetSize- The target size.
-
getPosition
Description copied from interface:WebDriver.WindowGet the position of the current window, relative to the upper left corner of the screen.See W3C WebDriver specification for more details.
- Specified by:
getPositionin interfaceWebDriver.Window- Returns:
- The current window position.
-
setPosition
Description copied from interface:WebDriver.WindowSet the position of the current window. This is relative to the upper left corner of the screen, synonymous to window.moveTo() in JS.See W3C WebDriver specification for more details.
- Specified by:
setPositionin interfaceWebDriver.Window- Parameters:
targetPosition- The target position of the window.
-
maximize
public void maximize()Description copied from interface:WebDriver.WindowMaximizes the current window if it is not already maximizedSee W3C WebDriver specification for more details.
- Specified by:
maximizein interfaceWebDriver.Window
-
minimize
public void minimize()Description copied from interface:WebDriver.WindowMinimizes the current window if it is not already minimizedSee W3C WebDriver specification for more details.
- Specified by:
minimizein interfaceWebDriver.Window
-
fullscreen
public void fullscreen()Description copied from interface:WebDriver.WindowFullscreen the current window if it is not already fullscreenSee W3C WebDriver specification for more details.
- Specified by:
fullscreenin interfaceWebDriver.Window
-