Class GenericProvider

java.lang.Object
io.percy.appium.providers.GenericProvider
Direct Known Subclasses:
AppAutomate

public class GenericProvider extends Object
  • Constructor Details

    • GenericProvider

      public GenericProvider(io.appium.java_client.AppiumDriver driver)
  • Method Details

    • getTag

      public org.json.JSONObject getTag()
    • captureTiles

      public List<Tile> captureTiles(ScreenshotOptions options) throws IOException, Exception
      Throws:
      IOException
      Exception
    • supports

      public static Boolean supports(io.appium.java_client.AppiumDriver driver)
    • screenshot

      public String screenshot(String name, ScreenshotOptions options) throws Exception
      Throws:
      Exception
    • screenshot

      public String screenshot(String name, ScreenshotOptions options, String platformVersion, String deviceName) throws Exception
      Throws:
      Exception
    • setMetadata

      public void setMetadata(Metadata metadata)
    • getMetadata

      public Metadata getMetadata()
    • setDebugUrl

      public void setDebugUrl(String debugUrl)
    • findRegions

      public org.json.JSONArray findRegions(List<String> xpaths, List<String> accessibilityIds, List<io.appium.java_client.MobileElement> elements, List<Region> locations)
    • getRegionObject

      public org.json.JSONObject getRegionObject(String selector, io.appium.java_client.MobileElement element)
    • getRegionsByXpath

      public void getRegionsByXpath(org.json.JSONArray elementsArray, List<String> xpaths)
    • getRegionsByIds

      public void getRegionsByIds(org.json.JSONArray elementsArray, List<String> ids)
    • getRegionsByElements

      public void getRegionsByElements(org.json.JSONArray elementsArray, List<io.appium.java_client.MobileElement> elements)
    • getRegionsByLocation

      public void getRegionsByLocation(org.json.JSONArray elementsArray, List<Region> customLocations)