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)
    • findIgnoredRegions

      public org.json.JSONObject findIgnoredRegions(ScreenshotOptions options)
    • ignoreElementObject

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

      public void ignoreRegionsByXpaths(org.json.JSONArray ignoredElementsArray, List<String> xpaths)
    • ignoreRegionsByIds

      public void ignoreRegionsByIds(org.json.JSONArray ignoredElementsArray, List<String> ids)
    • 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)