Class WindowUtils

java.lang.Object
uk.co.evoco.webdriver.utils.WindowUtils

public final class WindowUtils
extends java.lang.Object
Handles window utilities (like scrolling etc)
  • Constructor Summary

    Constructors 
    Constructor Description
    WindowUtils()  
  • Method Summary

    Modifier and Type Method Description
    static void scrollIntoView​(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement webElement)
    Scrolls a given element into the Viewport view

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • scrollIntoView

      public static void scrollIntoView​(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement webElement)
      Scrolls a given element into the Viewport view
      Parameters:
      webDriver - active WebDriver instance
      webElement - active WebElement, already located