octaltree/playwright-rust

Creating an incognito window

Closed this issue · 1 comments

Hello,

is there a way to create an incognito window in playwright-rust?

I see the comment

/// Playwright allows creation of "incognito" browser contexts with `browser.newContext()` method. "Incognito" browser

granted, I am not super familiar with playwright and still coming to terms with rustlang.

This method in the example calls newContext.

let context = browser.context_builder().build().await?;

It creates a new browser context. It won't share cookies/cache with other browser contexts.