Class PageScrollUtil
java.lang.Object
org.uitnet.testing.smartfwk.ui.core.utils.PageScrollUtil
public class PageScrollUtil extends Object
- Author:
- Madhav Krishna
-
Constructor Summary
Constructors Constructor Description PageScrollUtil() -
Method Summary
Modifier and Type Method Description static booleanisElementInViewport(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)static voidmouseClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)static voidmouseClickAndHold(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)static voidmouseContextClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)static voidmouseDoubleClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)static voidmouseDragAndDrop(SmartAppDriver appDriver, org.openqa.selenium.WebElement source, org.openqa.selenium.WebElement target)static voidmouseRelease(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)static voidscrollElementToViewport(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)static voidscrollToBottomLeftPage(SmartAppDriver appDriver)static voidscrollToBottomRightPage(SmartAppDriver appDriver)static voidscrollToTopLeftPage(SmartAppDriver appDriver)static voidscrollToTopRightPage(SmartAppDriver appDriver)static voidswipe(SmartAppDriver appDriver, int xStart, int yStart, int xStop, int yStop)This method is applicable only to mobile native apps.static voidswipePageDown(SmartAppDriver appDriver)static voidswipePageLeft(SmartAppDriver appDriver)static voidswipePageRight(SmartAppDriver appDriver)static voidswipePageUp(SmartAppDriver appDriver)
-
Constructor Details
-
PageScrollUtil
public PageScrollUtil()
-
-
Method Details
-
scrollToTopLeftPage
-
scrollToTopRightPage
-
scrollToBottomLeftPage
-
scrollToBottomRightPage
-
isElementInViewport
public static boolean isElementInViewport(SmartAppDriver appDriver, org.openqa.selenium.WebElement element) -
scrollElementToViewport
public static void scrollElementToViewport(SmartAppDriver appDriver, org.openqa.selenium.WebElement element) -
swipe
This method is applicable only to mobile native apps.- Parameters:
appDriver-xStart-yStart-xStop-yStop-
-
swipePageUp
-
swipePageDown
-
swipePageRight
-
swipePageLeft
-
mouseClick
-
mouseDoubleClick
public static void mouseDoubleClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element) -
mouseContextClick
public static void mouseContextClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element) -
mouseClickAndHold
public static void mouseClickAndHold(SmartAppDriver appDriver, org.openqa.selenium.WebElement element) -
mouseRelease
-
mouseDragAndDrop
public static void mouseDragAndDrop(SmartAppDriver appDriver, org.openqa.selenium.WebElement source, org.openqa.selenium.WebElement target)
-