Function waitForPageChange

  • High level helper which is resolved on any DOM mutation.

    Type Parameters

    • T

    Parameters

    • ctx: Context

      Context object.

    • Optional options: Partial<WitForPageChangeOptions>

      Timeout for polling.

    Returns Promise<void>

    Resolves on each page mutation.

    Example

    async function step(ctx: Context) {
    await witForPageChange(ctx);
    }