Class MatchUtils

java.lang.Object
ai.devtools.utils.MatchUtils

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

    • MatchUtils

      public MatchUtils()
  • Method Details

    • 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