Class MatchUtilsAppium<T extends io.appium.java_client.MobileElement>

java.lang.Object
ai.devtools.utils.MatchUtilsAppium<T>

public class MatchUtilsAppium<T extends io.appium.java_client.MobileElement> extends Object
Static methods for matching bounding boxes to underlying Selenium elements.
  • Constructor Details

    • MatchUtilsAppium

      public MatchUtilsAppium()
  • Method Details

    • matchBoundingBoxToAppiumElement

      public T matchBoundingBoxToAppiumElement(com.google.gson.JsonObject boundingBox, SmartDriver<T> driver)
      Matches a bounding box returned by the dev-tools.ai API to a selenium T on the current page.
      Parameters:
      boundingBox - The json representing the element returned by the dev-tools.ai API.
      driver - The SmartDriver to use
      Returns:
      The best-matching, underlying T which best fits the parameters specified by boudingBox