pupetter create incognitor browser
const context = await browser.createIncognitoBrowserContext()
const page = await context.newPage()
page.setJavaScriptEnabled(false)
pupetter create incognitor browser
const context = await browser.createIncognitoBrowserContext()
const page = await context.newPage()
page.setJavaScriptEnabled(false)
pupetter create incognitor browser
const context = await browser.defaultBrowserContext();
const page = await context.newPage();
pupetter create incognitor browser
using (Browser browser = await Puppeteer.LaunchAsync(options))
{
// create the async context
var context = await browser.CreateIncognitoBrowserContextAsync();
// get the page created by default when launch async ran and close it whilst keeping the browser active
var browserPages = await browser.PagesAsync();
await browserPages[0].CloseAsync();
// create a new page using the incognito context
using (Page page = await context.NewPageAsync())
{
// do something
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us