public class EyesAppiumUtils extends EyesSeleniumUtils
| Constructor and Description |
|---|
EyesAppiumUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ContentSize |
getContentSize(io.appium.java_client.AppiumDriver driver,
org.openqa.selenium.WebElement element) |
static org.openqa.selenium.WebElement |
getFirstScrollableView(org.openqa.selenium.WebDriver driver) |
static org.openqa.selenium.WebElement |
getFirstVisibleChild(org.openqa.selenium.WebElement element) |
static LastScrollData |
getLastScrollData(io.appium.java_client.AppiumDriver driver) |
static String |
getPlatformVersion(org.openqa.selenium.HasCapabilities driver) |
static boolean |
isAndroid(org.openqa.selenium.WebDriver driver) |
static boolean |
isIOS(org.openqa.selenium.WebDriver driver) |
static boolean |
isLandscapeOrientation(Logger logger,
org.openqa.selenium.WebDriver driver) |
static boolean |
isMobileDevice(org.openqa.selenium.WebDriver driver) |
static void |
scrollBackToElement(io.appium.java_client.android.AndroidDriver driver,
org.openqa.selenium.remote.RemoteWebElement scroller,
org.openqa.selenium.remote.RemoteWebElement scrollToEl) |
static void |
scrollByDirection(io.appium.java_client.AppiumDriver driver,
String direction) |
static void |
scrollByDirection(io.appium.java_client.AppiumDriver driver,
String direction,
double distanceRatio) |
static int |
tryAutomaticRotation(Logger logger,
org.openqa.selenium.WebDriver driver,
BufferedImage image) |
getCurrentFrameContentEntireSize, getCurrentScrollPosition, getCurrentTransform, getDevicePixelRatio, getElementVisibleSize, getEntireElementSize, getPageLocation, getUnderlyingDriver, getViewportLocation, getViewportSize, getViewportSizeOrDisplaySize, selectRootElement, setBrowserSize, setBrowserSizeByViewportSize, setCurrentScrollPosition, setOverflow, setTransform, setTransforms, setViewportSize, translateTopublic static boolean isMobileDevice(org.openqa.selenium.WebDriver driver)
driver - The driver for which to check if it represents a mobile device.true if the platform running the test is a mobile
platform. false otherwise.public static boolean isAndroid(org.openqa.selenium.WebDriver driver)
driver - The driver to test.true if the driver is an Android driver.
false otherwise.public static boolean isIOS(org.openqa.selenium.WebDriver driver)
driver - The driver to test.true if the driver is an iOS driver.
false otherwise.public static String getPlatformVersion(org.openqa.selenium.HasCapabilities driver)
driver - The driver to get the platform version from.null if it is undefined.public static org.openqa.selenium.WebElement getFirstScrollableView(org.openqa.selenium.WebDriver driver)
public static org.openqa.selenium.WebElement getFirstVisibleChild(org.openqa.selenium.WebElement element)
public static void scrollByDirection(io.appium.java_client.AppiumDriver driver,
String direction)
public static void scrollByDirection(io.appium.java_client.AppiumDriver driver,
String direction,
double distanceRatio)
public static void scrollBackToElement(io.appium.java_client.android.AndroidDriver driver,
org.openqa.selenium.remote.RemoteWebElement scroller,
org.openqa.selenium.remote.RemoteWebElement scrollToEl)
public static ContentSize getContentSize(io.appium.java_client.AppiumDriver driver, org.openqa.selenium.WebElement element) throws IOException
IOException@Nullable public static LastScrollData getLastScrollData(io.appium.java_client.AppiumDriver driver)
public static boolean isLandscapeOrientation(Logger logger, org.openqa.selenium.WebDriver driver)
public static int tryAutomaticRotation(Logger logger, org.openqa.selenium.WebDriver driver, BufferedImage image)
Copyright © 2020. All rights reserved.