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
All Methods Static Methods Concrete Methods 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 voidmouseForceClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)static voidmouseHoverOver(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)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)
-
-
-
Method Detail
-
scrollToTopLeftPage
public static void scrollToTopLeftPage(SmartAppDriver appDriver)
-
scrollToTopRightPage
public static void scrollToTopRightPage(SmartAppDriver appDriver)
-
scrollToBottomLeftPage
public static void scrollToBottomLeftPage(SmartAppDriver appDriver)
-
scrollToBottomRightPage
public static void scrollToBottomRightPage(SmartAppDriver appDriver)
-
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
public static void swipe(SmartAppDriver appDriver, int xStart, int yStart, int xStop, int yStop)
This method is applicable only to mobile native apps.- Parameters:
appDriver-xStart-yStart-xStop-yStop-
-
swipePageUp
public static void swipePageUp(SmartAppDriver appDriver)
-
swipePageDown
public static void swipePageDown(SmartAppDriver appDriver)
-
swipePageRight
public static void swipePageRight(SmartAppDriver appDriver)
-
swipePageLeft
public static void swipePageLeft(SmartAppDriver appDriver)
-
mouseClick
public static void mouseClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
-
mouseForceClick
public static void mouseForceClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
-
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
public static void mouseRelease(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
-
mouseDragAndDrop
public static void mouseDragAndDrop(SmartAppDriver appDriver, org.openqa.selenium.WebElement source, org.openqa.selenium.WebElement target)
-
mouseHoverOver
public static void mouseHoverOver(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
-
-