@Beta protected class RemoteWebDriver.RemoteWebDriverOptions.RemoteWindow extends java.lang.Object implements WebDriver.Window
Modifier | Constructor and Description |
---|---|
protected |
RemoteWindow() |
Modifier and Type | Method and Description |
---|---|
void |
fullscreen()
Fullscreen the current window if it is not already fullscreen
|
Point |
getPosition()
Get the position of the current window, relative to the upper left corner of the screen.
|
Dimension |
getSize()
Get the size of the current window.
|
void |
maximize()
Maximizes the current window if it is not already maximized
|
void |
setPosition(Point targetPosition)
Set the position of the current window.
|
void |
setSize(Dimension targetSize)
Set the size of the current window.
|
public void setSize(Dimension targetSize)
WebDriver.Window
setSize
in interface WebDriver.Window
targetSize
- The target size.public void setPosition(Point targetPosition)
WebDriver.Window
setPosition
in interface WebDriver.Window
targetPosition
- The target position of the window.public Dimension getSize()
WebDriver.Window
getSize
in interface WebDriver.Window
public Point getPosition()
WebDriver.Window
getPosition
in interface WebDriver.Window
public void maximize()
WebDriver.Window
maximize
in interface WebDriver.Window
public void fullscreen()
WebDriver.Window
fullscreen
in interface WebDriver.Window