Function navigate

  • Experimental

    Navigates to a specified URL based on the provided options.

    Parameters

    • ctx: Context

      The context in which the navigation is performed.

    • options: NavigateOptions

      The options for navigation.

    Returns Promise<void | Context>

    A promise that resolves when the navigation is complete.

    await navigate(ctx, { url: 'https://example.com', createPage: true, background: false });