Package ai.devtools.utils
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 Summary
Constructors Constructor Description MatchUtilsAppium()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TmatchBoundingBoxToAppiumElement(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.
-
-
-
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- TheSmartDriverto use- Returns:
- The best-matching, underlying
Twhich best fits the parameters specified byboudingBox
-
-