Class MatchUtils


  • public class MatchUtils
    extends Object
    Static methods for matching bounding boxes to underlying Selenium elements.
    • Constructor Detail

      • MatchUtils

        public MatchUtils()
    • Method Detail

      • matchBoundingBoxToSeleniumElementJS

        public static WebElement matchBoundingBoxToSeleniumElementJS​(com.google.gson.JsonObject boundingBox,
                                                                     SmartDriver driver)
      • matchBoundingBoxToSeleniumElement

        public static WebElement matchBoundingBoxToSeleniumElement​(com.google.gson.JsonObject boundingBox,
                                                                   SmartDriver driver)
        Matches a bounding box returned by the dev-tools.ai API to a selenium WebElement 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 WebElement which best fits the parameters specified by boudingBox