public class EyesAppiumDriver extends EyesWebDriver
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.WindowdefaultContentViewportSize, driver, elementsIds, eyes, logger, rotation, touch| Constructor and Description |
|---|
EyesAppiumDriver(Logger logger,
Eyes eyes,
io.appium.java_client.AppiumDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
Object |
executeAsyncScript(String script,
Object... args) |
Object |
executeScript(String script,
Object... args) |
EyesAppiumElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
RectangleSize |
getDefaultContentViewportSize(boolean forceQuery) |
double |
getDevicePixelRatio() |
EyesAppiumElement |
getEyesElement(org.openqa.selenium.WebElement element) |
io.appium.java_client.AppiumDriver |
getRemoteWebDriver() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> xOutputType) |
int |
getStatusBarHeight() |
HashMap<String,Integer> |
getViewportRect() |
static BufferedImage |
normalizeRotation(Logger logger,
org.openqa.selenium.WebDriver driver,
BufferedImage image,
ImageRotation rotation)
Rotates the image as necessary.
|
close, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getCapabilities, getCurrentUrl, getDefaultContentViewportSize, getElementIds, getEyes, getFrameChain, getKeyboard, getMouse, getPageSource, getRotation, getTitle, getTouch, getUserAgent, getWindowHandle, getWindowHandles, manage, navigate, quit, setRotation, switchTopublic io.appium.java_client.AppiumDriver getRemoteWebDriver()
getRemoteWebDriver in class EyesWebDriverpublic EyesAppiumElement getEyesElement(org.openqa.selenium.WebElement element)
public int getStatusBarHeight()
public double getDevicePixelRatio()
public RectangleSize getDefaultContentViewportSize(boolean forceQuery)
getDefaultContentViewportSize in class EyesWebDriverforceQuery - If true, we will perform the query even if we have a cached viewport size.public Object executeScript(String script, Object... args)
executeScript in interface org.openqa.selenium.JavascriptExecutorexecuteScript in class EyesWebDriverpublic Object executeAsyncScript(String script, Object... args)
executeAsyncScript in interface org.openqa.selenium.JavascriptExecutorexecuteAsyncScript in class EyesWebDriverpublic static BufferedImage normalizeRotation(Logger logger, org.openqa.selenium.WebDriver driver, BufferedImage image, ImageRotation rotation)
driver - The underlying driver which produced the screenshot.image - The image to normalize.rotation - The degrees by which to rotate the image:
positive values = clockwise rotation,
negative values = counter-clockwise,
0 = force no rotation,
null = rotate automatically as needed.public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> xOutputType)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotgetScreenshotAs in class EyesWebDriverorg.openqa.selenium.WebDriverExceptionpublic EyesAppiumElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebDriverfindElement in class EyesWebDriverpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebDriverfindElements in class EyesWebDriverCopyright © 2020. All rights reserved.