public class HtmlUnitDriver.HtmlUnitWindow extends java.lang.Object implements WebDriver.Window
Constructor and Description |
---|
HtmlUnitWindow() |
Modifier and Type | Method and Description |
---|---|
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