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


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

      • MatchUtilsAppium

        public MatchUtilsAppium()
    • Method Detail

      • 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