Package com.version1.webdriver.utils
Class WindowUtils
java.lang.Object
com.version1.webdriver.utils.WindowUtils
Handles window utilities (like scrolling etc)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidscrollIntoView(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement webElement) Scrolls a given element into the Viewport view
-
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 instancewebElement- active WebElement, already located
-