Class CliWrapper

java.lang.Object
io.percy.appium.lib.CliWrapper

public class CliWrapper extends Object
  • Constructor Details

    • CliWrapper

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

    • healthcheck

      public boolean healthcheck()
      Checks to make sure the local Percy server is running. If not, disable Percy.
    • postScreenshot

      public String postScreenshot(String name, org.json.JSONObject tag, List<Tile> tiles, String externalDebugUrl, org.json.JSONObject ignoredElementsData, org.json.JSONObject consideredElementsData)
      POST the Screenshot taken from the app to the Percy CLI node process.
      Parameters:
      name - The human-readable name of the screenshot. Should be unique.
    • postScreenshotPOA

      public String postScreenshotPOA(String name, String sessionId, String commandExecutorUrl, Map<String,Object> capabilities, Map<String,Object> options)