public class PageScrollUtil extends Object
| Constructor and Description |
|---|
PageScrollUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isElementInViewport(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
mouseClick(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
mouseClickAndHold(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
mouseContextClick(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
mouseDoubleClick(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
mouseDragAndDrop(SmartAppDriver appDriver,
org.openqa.selenium.WebElement source,
org.openqa.selenium.WebElement target) |
static void |
mouseRelease(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
scrollElementToViewport(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
scrollToBottomLeftPage(SmartAppDriver appDriver) |
static void |
scrollToBottomRightPage(SmartAppDriver appDriver) |
static void |
scrollToTopLeftPage(SmartAppDriver appDriver) |
static void |
scrollToTopRightPage(SmartAppDriver appDriver) |
static void |
swipe(SmartAppDriver appDriver,
int xStart,
int yStart,
int xStop,
int yStop)
This method is applicable only to mobile native apps.
|
static void |
swipePageDown(SmartAppDriver appDriver) |
static void |
swipePageLeft(SmartAppDriver appDriver) |
static void |
swipePageRight(SmartAppDriver appDriver) |
static void |
swipePageUp(SmartAppDriver appDriver) |
public static void scrollToTopLeftPage(SmartAppDriver appDriver)
public static void scrollToTopRightPage(SmartAppDriver appDriver)
public static void scrollToBottomLeftPage(SmartAppDriver appDriver)
public static void scrollToBottomRightPage(SmartAppDriver appDriver)
public static boolean isElementInViewport(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void scrollElementToViewport(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void swipe(SmartAppDriver appDriver, int xStart, int yStart, int xStop, int yStop)
appDriver - xStart - yStart - xStop - yStop - public static void swipePageUp(SmartAppDriver appDriver)
public static void swipePageDown(SmartAppDriver appDriver)
public static void swipePageRight(SmartAppDriver appDriver)
public static void swipePageLeft(SmartAppDriver appDriver)
public static void mouseClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void mouseDoubleClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void mouseContextClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void mouseClickAndHold(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void mouseRelease(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void mouseDragAndDrop(SmartAppDriver appDriver, org.openqa.selenium.WebElement source, org.openqa.selenium.WebElement target)
Copyright © 2021. All rights reserved.