Class TouchActionsUtil
- java.lang.Object
-
- org.uitnet.testing.smartfwk.ui.core.utils.TouchActionsUtil
-
public class TouchActionsUtil extends Object
Used to perform touch actions and gestures using touch operations.- Author:
- Madhav Krishna
-
-
Constructor Summary
Constructors Constructor Description TouchActionsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddoubleTap(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.Point point, int pauseDurationInMs)static voiddoubleTapOnElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int pauseDurationInMs)static voidnTaps(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.Point point, int n, int pauseDurationInMs)Used to tap N times.static voidnTapsOnElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int n, int pauseDurationInMs)static voidscrollDown(org.openqa.selenium.WebDriver webDriver, int percentScroll, int durationInMs)static voidscrollLeft(org.openqa.selenium.WebDriver webDriver, int percentScroll, int durationInMs)static voidscrollRight(org.openqa.selenium.WebDriver webDriver, int percentScroll, int durationInMs)static voidscrollUp(org.openqa.selenium.WebDriver webDriver, int percentScroll, int durationInMs)static voidswipe(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.Point start, org.openqa.selenium.Point end, int swipeDurationInMs)static voidswipeDownFromElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int offset, int swipeDurationInMs)static voidswipeLeftFromElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int offset, int swipeDurationInMs)static voidswipeRightFromElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int offset, int swipeDurationInMs)static voidswipeUpFromElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int offset, int swipeDurationInMs)static voidtap(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.Point point, int holdDurationInMs)static voidtapOnElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int holdDurationInMs)static voidzoomIn(org.openqa.selenium.WebDriver webDriver, int numPixels, int durationInMs)static voidzoomOut(org.openqa.selenium.WebDriver webDriver, int numPixels, int durationInMs)
-
-
-
Method Detail
-
tap
public static void tap(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.Point point, int holdDurationInMs)
-
tapOnElement
public static void tapOnElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int holdDurationInMs)
-
doubleTap
public static void doubleTap(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.Point point, int pauseDurationInMs)
-
doubleTapOnElement
public static void doubleTapOnElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int pauseDurationInMs)
-
nTaps
public static void nTaps(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.Point point, int n, int pauseDurationInMs)Used to tap N times.- Parameters:
webDriver-point-n-pauseDurationInMs-
-
nTapsOnElement
public static void nTapsOnElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int n, int pauseDurationInMs)
-
swipe
public static void swipe(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.Point start, org.openqa.selenium.Point end, int swipeDurationInMs)
-
swipeUpFromElement
public static void swipeUpFromElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int offset, int swipeDurationInMs)
-
swipeDownFromElement
public static void swipeDownFromElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int offset, int swipeDurationInMs)
-
swipeRightFromElement
public static void swipeRightFromElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int offset, int swipeDurationInMs)
-
swipeLeftFromElement
public static void swipeLeftFromElement(org.openqa.selenium.WebDriver webDriver, org.openqa.selenium.WebElement elem, int offset, int swipeDurationInMs)
-
zoomIn
public static void zoomIn(org.openqa.selenium.WebDriver webDriver, int numPixels, int durationInMs)
-
zoomOut
public static void zoomOut(org.openqa.selenium.WebDriver webDriver, int numPixels, int durationInMs)
-
scrollUp
public static void scrollUp(org.openqa.selenium.WebDriver webDriver, int percentScroll, int durationInMs)
-
scrollDown
public static void scrollDown(org.openqa.selenium.WebDriver webDriver, int percentScroll, int durationInMs)
-
scrollRight
public static void scrollRight(org.openqa.selenium.WebDriver webDriver, int percentScroll, int durationInMs)
-
scrollLeft
public static void scrollLeft(org.openqa.selenium.WebDriver webDriver, int percentScroll, int durationInMs)
-
-