Class TransportRequest.WidgetPathStep

java.lang.Object
privbot.hooks.TransportRequest.WidgetPathStep
Enclosing class:
TransportRequest

public static final class TransportRequest.WidgetPathStep extends Object
One step along the post-interaction widget path: label text, packed widget id, or inspector path with optional [index] nesting.
  • Method Details

    • text

      public static TransportRequest.WidgetPathStep text(String 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

      public static TransportRequest.WidgetPathStep packed(int packedWidgetId)
      Packed widget id (group << 16 | child), as shown in the Widget Inspector.
    • widgetInspectorPath

      public static TransportRequest.WidgetPathStep widgetInspectorPath(String path)
      Inspector path such as 820.49[44] when packed(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

      public String 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

      public String widgetInspectorPath()
      Non-null only when isWidgetInspectorPath() is true.