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 TypeMethodDescriptioncaptureTiles(ScreenshotOptions options) org.json.JSONArrayfindRegions(List<String> xpaths, List<String> accessibilityIds, List<io.appium.java_client.MobileElement> elements, List<Region> locations) org.json.JSONObjectgetRegionObject(String selector, io.appium.java_client.MobileElement element) voidgetRegionsByElements(org.json.JSONArray elementsArray, List<io.appium.java_client.MobileElement> elements) voidgetRegionsByIds(org.json.JSONArray elementsArray, List<String> ids) voidgetRegionsByLocation(org.json.JSONArray elementsArray, List<Region> customLocations) voidgetRegionsByXpath(org.json.JSONArray elementsArray, List<String> xpaths) org.json.JSONObjectgetTag()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
-
findRegions
-
getRegionObject
public org.json.JSONObject getRegionObject(String selector, io.appium.java_client.MobileElement element) -
getRegionsByXpath
-
getRegionsByIds
-
getRegionsByElements
public void getRegionsByElements(org.json.JSONArray elementsArray, List<io.appium.java_client.MobileElement> elements) -
getRegionsByLocation
-