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 |
scrollElemToViewport(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
scrollToBottomLeft(SmartAppDriver appDriver) |
static void |
scrollToBottomRight(SmartAppDriver appDriver) |
static void |
scrollToTopLeft(SmartAppDriver appDriver) |
static void |
scrollToTopRight(SmartAppDriver appDriver) |
static void |
scrollToViewportAndClick(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
scrollToViewportAndClickAndHold(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
scrollToViewportAndDoubleClick(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
static void |
scrollToViewportAndDragAndDrop(SmartAppDriver appDriver,
org.openqa.selenium.WebElement source,
org.openqa.selenium.WebElement target) |
static void |
scrollToViewportAndRelease(SmartAppDriver appDriver,
org.openqa.selenium.WebElement element) |
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 scrollToTopLeft(SmartAppDriver appDriver)
public static void scrollToTopRight(SmartAppDriver appDriver)
public static void scrollToBottomLeft(SmartAppDriver appDriver)
public static void scrollToBottomRight(SmartAppDriver appDriver)
public static boolean isElementInViewport(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void scrollElemToViewport(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 scrollToViewportAndClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void scrollToViewportAndDoubleClick(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void scrollToViewportAndClickAndHold(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void scrollToViewportAndRelease(SmartAppDriver appDriver, org.openqa.selenium.WebElement element)
public static void scrollToViewportAndDragAndDrop(SmartAppDriver appDriver, org.openqa.selenium.WebElement source, org.openqa.selenium.WebElement target)
Copyright © 2021. All rights reserved.