Function waitForAny

  • Waits for any of the given selectors.

    Parameters

    • ctx: Context

      Context object.

    • selectors: string[]

      List of selectors to wait for.

    • Optional options: WaitForSelectorOptions

    Returns Promise<[MaybeElementHandle | null, string]>

    Example

    async function step(ctx: Context) {
    await waitForAny(ctx, [selector1, selector2]);
    }

Generated using TypeDoc