Function goToPage

  • Navigates to the specified URL in the given browser tab.

    Parameters

    • ctx: Context

      Context object.

    • url: string

      URL to navigate to.

    • Optional options: WaitForOptions

      Optional Puppeteer options for waiting.

    Returns Promise<void>

    Example

    // Navigates to "https://example.com" and waits until the network is idle for 1 second.
    await goToPage(ctx, 'https://example.com', { waitUntil: 'networkidle0', timeout: 1000 });

Generated using TypeDoc