Package ai.devtools.utils
Class MatchUtilsAppium<T extends io.appium.java_client.MobileElement>
java.lang.Object
ai.devtools.utils.MatchUtilsAppium<T>
Static methods for matching bounding boxes to underlying Selenium elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmatchBoundingBoxToAppiumElement(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.
-
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- TheSmartDriverto use- Returns:
- The best-matching, underlying
Twhich best fits the parameters specified byboudingBox
-