Package io.percy.appium.providers
Class GenericProvider
java.lang.Object
io.percy.appium.providers.GenericProvider
- Direct Known Subclasses:
AppAutomate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomIgnoreRegions(org.json.JSONArray ignoredElementsArray, List<IgnoreRegion> customLocations) captureTiles(ScreenshotOptions options) org.json.JSONObjectfindIgnoredRegions(ScreenshotOptions options) org.json.JSONObjectgetTag()org.json.JSONObjectignoreElementObject(String selector, io.appium.java_client.MobileElement element) voidignoreRegionsByElement(org.json.JSONArray ignoredElementsArray, List<io.appium.java_client.MobileElement> elements) voidignoreRegionsByIds(org.json.JSONArray ignoredElementsArray, List<String> ids) voidignoreRegionsByXpaths(org.json.JSONArray ignoredElementsArray, List<String> xpaths) screenshot(String name, ScreenshotOptions options) screenshot(String name, ScreenshotOptions options, String platformVersion, String deviceName) voidsetDebugUrl(String debugUrl) voidsetMetadata(Metadata metadata) static Booleansupports(io.appium.java_client.AppiumDriver driver)
-
Constructor Details
-
GenericProvider
public GenericProvider(io.appium.java_client.AppiumDriver driver)
-
-
Method Details
-
getTag
public org.json.JSONObject getTag() -
captureTiles
- Throws:
IOExceptionException
-
supports
-
screenshot
- Throws:
Exception
-
screenshot
public String screenshot(String name, ScreenshotOptions options, String platformVersion, String deviceName) throws Exception - Throws:
Exception
-
setMetadata
-
getMetadata
-
setDebugUrl
-
findIgnoredRegions
-
ignoreElementObject
public org.json.JSONObject ignoreElementObject(String selector, io.appium.java_client.MobileElement element) -
ignoreRegionsByXpaths
-
ignoreRegionsByIds
-
ignoreRegionsByElement
public void ignoreRegionsByElement(org.json.JSONArray ignoredElementsArray, List<io.appium.java_client.MobileElement> elements) -
addCustomIgnoreRegions
public void addCustomIgnoreRegions(org.json.JSONArray ignoredElementsArray, List<IgnoreRegion> customLocations)
-