microsoft / playwright-java

Java version of the Playwright testing and automation library
https://playwright.dev/java/
Apache License 2.0
1.13k stars 205 forks source link

[Bug]: Incognito mode in chromium with version 1.43 #1577

Closed joseRodenasMinderest closed 4 months ago

joseRodenasMinderest commented 4 months ago

Version

1.43.0

Steps to reproduce

Open a new context like always, it opens a non incognito browser.

https://playwright.dev/java/docs/api/class-browsercontext

// Create a new incognito browser context BrowserContext context = browser.newContext(); // Create a new page inside context. Page page = context.newPage(); page.navigate("https://example.com"); // Dispose context once it is no longer needed. context.close();

Expected behavior

The browser opens in incognito mode

Actual behavior

The browser opens in non incognito mode

Additional context

Just check that in 1.42.0 version works like always

Environment

Operating System: Ubuntu 22.04 Browser: Chromium Java: OpenJdk 11

mxschmitt commented 4 months ago

Due to a Chromium change, it does not look like Incognito anymore but it is actually an incognito tab - do you experience issues with your page behaving different?

mxschmitt commented 4 months ago

Closing as per above. Feel free to re-file if you still experience issues.