Package org.openqa.selenium.htmlunit
Class HtmlUnitWindow
- java.lang.Object
-
- org.openqa.selenium.htmlunit.HtmlUnitWindow
-
- All Implemented Interfaces:
org.openqa.selenium.WebDriver.Window
public class HtmlUnitWindow extends Object implements org.openqa.selenium.WebDriver.Window
- Author:
- Martin Bartoš, Ronald Brill
-
-
Constructor Summary
Constructors Constructor Description HtmlUnitWindow(WebWindow webWindow)Constructs a newHtmlUnitWindowwrapping the givenWebWindow.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfullscreen()org.openqa.selenium.PointgetPosition()org.openqa.selenium.DimensiongetSize()WebWindowgetWebWindow()Returns the underlyingWebWindowwrapped by this object.PagelastPage()Returns the last page loaded in the wrappedWebWindow.voidmaximize()voidminimize()voidsetPosition(org.openqa.selenium.Point targetPosition)voidsetSize(org.openqa.selenium.Dimension targetSize)
-
-
-
Constructor Detail
-
HtmlUnitWindow
public HtmlUnitWindow(WebWindow webWindow)
Constructs a newHtmlUnitWindowwrapping the givenWebWindow. Initializes the window position and initial dimensions based on the wrapped window.- Parameters:
webWindow- theWebWindowto wrap
-
-
Method Detail
-
getWebWindow
public WebWindow getWebWindow()
Returns the underlyingWebWindowwrapped by this object.- Returns:
- the wrapped
WebWindowinstance
-
setSize
public void setSize(org.openqa.selenium.Dimension targetSize)
- Specified by:
setSizein interfaceorg.openqa.selenium.WebDriver.Window
-
setPosition
public void setPosition(org.openqa.selenium.Point targetPosition)
- Specified by:
setPositionin interfaceorg.openqa.selenium.WebDriver.Window
-
getSize
public org.openqa.selenium.Dimension getSize()
- Specified by:
getSizein interfaceorg.openqa.selenium.WebDriver.Window
-
getPosition
public org.openqa.selenium.Point getPosition()
- Specified by:
getPositionin interfaceorg.openqa.selenium.WebDriver.Window
-
maximize
public void maximize()
- Specified by:
maximizein interfaceorg.openqa.selenium.WebDriver.Window
-
minimize
public void minimize()
- Specified by:
minimizein interfaceorg.openqa.selenium.WebDriver.Window
-
fullscreen
public void fullscreen()
- Specified by:
fullscreenin interfaceorg.openqa.selenium.WebDriver.Window
-
-