acquiescence - v0.1.16
    Preparing search index...

    Class ElementStateInspector

    Inspector for element states and interactions.

    Index
    • Queries a Node for a list of states.

      Parameters

      • node: Node

        {Node} The node to query, which will be transformed into the nearest element to query the state.

      • states: ElementState[]

        {ElementState[]} The states to query.

      Returns Promise<
          | { status: "success" }
          | { status: "failure"; missingState: ElementState }
          | { status: "error"; message: string },
      >

      A Promise that resolves to an object with the status of the query.

      • 'success' if all states are present.
      • 'failure' if at least one state is missing.
      • 'error' if the node is not connected, or cannot have a queried state.
      • 'missingState' is the state that is missing.
      • 'message' is the message of the error: 'notconnected'; 'noteditable' for an element that is not an ,