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.
|
void setSize(Dimension targetSize)
See W3C WebDriver specification for more details.
targetSize
- The target size.void setPosition(Point targetPosition)
See W3C WebDriver specification for more details.
targetPosition
- The target position of the window.Dimension getSize()
See W3C WebDriver specification for more details.
Point getPosition()
See W3C WebDriver specification for more details.
void maximize()
See W3C WebDriver specification for more details.
void fullscreen()
See W3C WebDriver specification for more details.