Interface BetaBrowserClickTarget.Visitor
-
- All Implemented Interfaces:
public interface BetaBrowserClickTarget.Visitor<T extends Object>An interface that defines how to map each variant of BetaBrowserClickTarget to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitCoordinate(BetaBrowserCoordinateTarget coordinate)A point in the browser viewport, in viewport pixels (the same frame as a full-viewport screenshot). abstract TvisitRef(BetaBrowserRefTarget ref)An element on the page, identified by a reference from a prior read_pageorfindresult.Tunknown(JsonValue json)Maps an unknown variant of BetaBrowserClickTarget to a value of type T. -
-
Method Detail
-
visitCoordinate
abstract T visitCoordinate(BetaBrowserCoordinateTarget coordinate)
A point in the browser viewport, in viewport pixels (the same frame as a full-viewport screenshot).
-
visitRef
abstract T visitRef(BetaBrowserRefTarget ref)
An element on the page, identified by a reference from a prior
read_pageorfindresult. References are scoped to the tab that produced them and become stale after navigation or a major re-render.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaBrowserClickTarget to a value of type T.
An instance of BetaBrowserClickTarget can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-