-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Chromium always launching in Incognito mode #2071
Comments
Thanks, @MaxTester1. Can you elaborate more on what exactly is breaking with incognito mode? Could this be related to #2072? |
The script you provide uses Did you expect that you will be logged into your Google account? If you are not doing testing, you can use |
Hi @arjun27 ,Thank you for the response, i tried #2072 but dint help. i have updated details in original post, please check |
Hi @pavelfeldman Thanks fro response, i tried const browser = await playwright[browserType].launchPersistentContext(userDataDir,{headless:false}) and it worked. Browser launched in normal mode. Is there any way like puppeteer launch chromium normal mode without persistent context? |
@MaxTester1 Playwright's persistent context is equal to Puppeteer's chromium launch. This is not the default mode in Playwright though since Playwright focuses on better automation isolation and browser instance re-use (thus the whole concept of contexts). |
Thank you @aslushnikov for the update. |
@aslushnikov Agreed with isolation etc. But it's a bit inconvenient if one needs to take screenshots for screenshot testing. AFAIU incognito in mobiles doesn't allow screenshots. Or is there a way to do it with Playwright-Chromium-incognito in mobiles I don't know about? |
When testing extensions incognito mode can get in the way also |
This is also an issue when testing sites that make use of Origin-Trial features which are not available in incognito mode… There should be an option in |
Would be good right The team have made some pretty opinionated choices and dropped support for extensions. It's a bit disappointing. |
It really is surprising I thought there would be a way to launch in a normal browser. |
The below sample script mentioned is a .js file |
Any simplest way to launch it in non-incognito mode? by just making some changes in the config file or test runner file? |
Hi
Chromium always launching in Incognito mode which causing my app authentication fail, how do i change this behavior to launch chrome in normal mode
Below sample script
Error:
same application works fine with puppeteer as it launches in normal mode
The text was updated successfully, but these errors were encountered: