public class HtmlUnitDriver.HtmlUnitWindow extends java.lang.Object implements WebDriver.Window
| Constructor and Description |
|---|
HtmlUnitDriver.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.WindowsetSize in interface WebDriver.WindowtargetSize - The target size.public void setPosition(Point targetPosition)
WebDriver.WindowsetPosition in interface WebDriver.WindowtargetPosition - The target position of the window.public Dimension getSize()
WebDriver.WindowgetSize in interface WebDriver.Windowpublic Point getPosition()
WebDriver.WindowgetPosition in interface WebDriver.Windowpublic void maximize()
WebDriver.Windowmaximize in interface WebDriver.Window