Package org.openqa.selenium.htmlunit
Class HtmlUnitWindow
java.lang.Object
org.openqa.selenium.htmlunit.HtmlUnitWindow
- All Implemented Interfaces:
org.openqa.selenium.WebDriver.Window
- Author:
- Martin Bartoš, Ronald Brill
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlUnitWindow(WebWindow webWindow) Constructs a newHtmlUnitWindowwrapping the givenWebWindow. -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.openqa.selenium.Pointorg.openqa.selenium.DimensiongetSize()Returns the underlyingWebWindowwrapped by this object.lastPage()Returns the last page loaded in the wrappedWebWindow.voidmaximize()voidminimize()voidsetPosition(org.openqa.selenium.Point targetPosition) voidsetSize(org.openqa.selenium.Dimension targetSize)
-
Constructor Details
-
HtmlUnitWindow
Constructs a newHtmlUnitWindowwrapping the givenWebWindow. Initializes the window position and initial dimensions based on the wrapped window.- Parameters:
webWindow- theWebWindowto wrap
-
-
Method Details
-
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
-
lastPage
Returns the last page loaded in the wrappedWebWindow.- Returns:
- the last
Pageloaded in this window
-