Matterway
    Preparing search index...

    Function goToPage

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

      Parameters

      • ctx: Context

        Context object.

      • url: string

        URL to navigate to.

      • Optionaloptions: GoToOptions

        Optional Puppeteer GoToOptions.

      Returns Promise<void>

      // 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 });