@Beta
public static interface WebDriver.Window
Modifier and Type | Method and Description |
---|---|
void |
fullscreen()
Fullscreen the current window if it is not already fullscreen
|
org.openqa.selenium.Point |
getPosition()
Get the position of the current window, relative to the upper left corner of the screen.
|
org.openqa.selenium.Dimension |
getSize()
Get the size of the current window.
|
void |
maximize()
Maximizes the current window if it is not already maximized
|
void |
setPosition(org.openqa.selenium.Point targetPosition)
Set the position of the current window.
|
void |
setSize(org.openqa.selenium.Dimension targetSize)
Set the size of the current window.
|
void setSize(org.openqa.selenium.Dimension targetSize)
targetSize
- The target size.void setPosition(org.openqa.selenium.Point targetPosition)
targetPosition
- The target position of the window.org.openqa.selenium.Dimension getSize()
org.openqa.selenium.Point getPosition()
void maximize()
void fullscreen()