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 Details

    • HtmlUnitWindow

      public HtmlUnitWindow(WebWindow webWindow)
      Constructs a new HtmlUnitWindow wrapping the given WebWindow. Initializes the window position and initial dimensions based on the wrapped window.
      Parameters:
      webWindow - the WebWindow to wrap
  • Method Details

    • getWebWindow

      public WebWindow getWebWindow()
      Returns the underlying WebWindow wrapped by this object.
      Returns:
      the wrapped WebWindow instance
    • setSize

      public void setSize(org.openqa.selenium.Dimension targetSize)
      Specified by:
      setSize in interface org.openqa.selenium.WebDriver.Window
    • setPosition

      public void setPosition(org.openqa.selenium.Point targetPosition)
      Specified by:
      setPosition in interface org.openqa.selenium.WebDriver.Window
    • getSize

      public org.openqa.selenium.Dimension getSize()
      Specified by:
      getSize in interface org.openqa.selenium.WebDriver.Window
    • getPosition

      public org.openqa.selenium.Point getPosition()
      Specified by:
      getPosition in interface org.openqa.selenium.WebDriver.Window
    • maximize

      public void maximize()
      Specified by:
      maximize in interface org.openqa.selenium.WebDriver.Window
    • minimize

      public void minimize()
      Specified by:
      minimize in interface org.openqa.selenium.WebDriver.Window
    • fullscreen

      public void fullscreen()
      Specified by:
      fullscreen in interface org.openqa.selenium.WebDriver.Window
    • lastPage

      public Page lastPage()
      Returns the last page loaded in the wrapped WebWindow.
      Returns:
      the last Page loaded in this window