Matterway
    Preparing search index...

    Function createBackgroundPage

    • Creates a new background browser tab, and returns its scoped Context.

      Parameters

      • ctx: Context

        Context object.

      • Optionalurl: string

        URL to navigate to. For extension page https://www.google.com/ is used by default.

      • Optionaloptions: GoToOptions

      Returns Promise<Context>

      Context object where page is the newly created background tab.

      The tab will be created in a minimized window of the same browser of the given ctx.

      const backgroundPageCtx = await createBackgroundPage(ctx, 'https://example.com');
      await click(backgroundPageCtx, 'button#submit');