puppeteer chrome incognito code example
Example 1: pupetter create incognitor browser
const context = await browser.createIncognitoBrowserContext()
const page = await context.newPage()
page.setJavaScriptEnabled(false)
Example 2: pupetter create incognitor browser
using (Browser browser = await Puppeteer.LaunchAsync(options))
{
var context = await browser.CreateIncognitoBrowserContextAsync();
var browserPages = await browser.PagesAsync();
await browserPages[0].CloseAsync();
using (Page page = await context.NewPageAsync())
{
}
}