Creates a new background browser tab, and returns its scoped Context.
Context object.
Optional
URL to navigate to.
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.
ctx
const backgroundPageCtx = await createBackgroundPage(ctx, 'https://example.com');await click(backgroundPageCtx, 'button#submit'); Copy
const backgroundPageCtx = await createBackgroundPage(ctx, 'https://example.com');await click(backgroundPageCtx, 'button#submit');
Creates a new background browser tab, and returns its scoped Context.