Class TransportRequest.WidgetPathStep
java.lang.Object
privbot.hooks.TransportRequest.WidgetPathStep
- Enclosing class:
TransportRequest
One step along the post-interaction widget path: label text, packed widget id, or inspector path
with optional
[index] nesting.-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanpacked(int packedWidgetId) Packed widget id (group << 16 | child), as shown in the Widget Inspector.inttext()A step that clicks the visible option with this text (matched like dialogue options).Non-null only whenisWidgetInspectorPath()is true.widgetInspectorPath(String path) Inspector path such as820.49[44]whenpacked(int)is ambiguous (duplicate packed ids).
-
Method Details
-
text
A step that clicks the visible option with this text (matched like dialogue options).- Parameters:
text- the option text, non-empty- Returns:
- the step
-
packed
Packed widget id (group << 16 | child), as shown in the Widget Inspector. -
widgetInspectorPath
Inspector path such as820.49[44]whenpacked(int)is ambiguous (duplicate packed ids). -
isPackedWidget
public boolean isPackedWidget()- Returns:
- whether this step targets a packed widget id
-
isWidgetInspectorPath
public boolean isWidgetInspectorPath()- Returns:
- whether this step targets an inspector path
-
text
- Returns:
- the option text; null for packed-id and path steps
-
packedWidgetId
public int packedWidgetId()- Returns:
- the packed widget id; 0 unless
isPackedWidget()
-
widgetInspectorPath
Non-null only whenisWidgetInspectorPath()is true.
-