@elysiumoss/ui-capture - v0.3.0
    Preparing search index...

    Type Alias StepPlan

    StepPlan:
        | {
            op: "waitForSelector";
            selector: string;
            state: ElementState;
            timeoutMs: number;
        }
        | {
            op: "waitForCount";
            selector: string;
            minCount: number;
            state: CountableState;
            timeoutMs: number;
            pollMs: number;
        }
        | { op: "sleep"; ms: number }
        | { op: "click"; selector: string; nth: number; timeoutMs: number }
        | { op: "fill"; selector: string; value: string; timeoutMs: number }
        | {
            op: "select";
            selector: string;
            values: readonly string[];
            timeoutMs: number;
        }
        | {
            op: "press";
            key: string;
            selector: string
            | undefined;
            timeoutMs: number | undefined;
        }
        | {
            op: "request";
            method: "GET"
            | "POST"
            | "PUT"
            | "PATCH"
            | "DELETE";
            url: string;
            json: unknown;
            hasJson: boolean;
            headers: Record<string, string>;
            expectStatus: number | undefined;
            timeoutMs: number;
        }
        | {
            op: "reload";
            waitUntil: "load"
            | "domcontentloaded"
            | "networkidle"
            | "commit";
            timeoutMs: number;
        }

    Type Declaration

    • {
          op: "waitForSelector";
          selector: string;
          state: ElementState;
          timeoutMs: number;
      }
    • {
          op: "waitForCount";
          selector: string;
          minCount: number;
          state: CountableState;
          timeoutMs: number;
          pollMs: number;
      }
    • { op: "sleep"; ms: number }
    • { op: "click"; selector: string; nth: number; timeoutMs: number }
    • { op: "fill"; selector: string; value: string; timeoutMs: number }
    • { op: "select"; selector: string; values: readonly string[]; timeoutMs: number }
    • {
          op: "press";
          key: string;
          selector: string | undefined;
          timeoutMs: number | undefined;
      }
      • Readonlyop: "press"
      • Readonlykey: string
      • Readonlyselector: string | undefined
      • ReadonlytimeoutMs: number | undefined

        Only the targeted path takes one. Without a selector the key goes to page.keyboard, which has no element to wait for and accepts no timeout, so the plan carries none rather than one the driver would quietly drop.

    • {
          op: "request";
          method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
          url: string;
          json: unknown;
          hasJson: boolean;
          headers: Record<string, string>;
          expectStatus: number | undefined;
          timeoutMs: number;
      }
    • {
          op: "reload";
          waitUntil: "load" | "domcontentloaded" | "networkidle" | "commit";
          timeoutMs: number;
      }