question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

headless:true with custom user profile = logged out

See original GitHub issue

Same situation as #921

Puppeteer 3.1.0 with Chrome beta v84.

const browser = await puppeteer.launch({
	headless: true,
	executablePath: 'C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe', // other browser
        args: [
	    '--user-data-dir=C:\\Users\\xxxxxx\\AppData\\Local\\Google\\Chrome Beta\\User Data',
            '--profile-directory=Default',
        ]
	});

Changing back to headless: false and I can login. Using true, I am now logged out. How to use headless true and reuse the profile and current cookies?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:5

github_iconTop GitHub Comments

1reaction
sydney-dcommented, Sep 8, 2020

Hello,

Bug is still present with latest release (puppeteer@5.2.1).

1reaction
sydney-dcommented, Jul 7, 2020

Up, Many people seem to be facing the same issue: https://github.com/puppeteer/puppeteer/issues/921

At the moment it’s not possible to reuse user-data-dir content for both headless and headfull

Read more comments on GitHub >

github_iconTop Results From Across the Web

System administrator gets logged out when they use 'Login as ...
Click on Setup. In the Quick Find box, enter Security Controls; Click on Session Settings under Security Controls. Deselect Force relogin after ...
Read more >
Customize the default user profile by using CopyProfile
Describes how to use CopyProfile to create a custom default user profile for a Windows image.
Read more >
puppeteer google login - MetamorfosiWeb
It can also be configured to use full (non-headless) Chrome or Chromium. ... Transcript:A short tutorial on how to log into a google...
Read more >
User Profiles - Auth0
Account linking. Users can log into an application initially using one connection (such as a custom database), then later log in using a...
Read more >
Delete, switch, or add users - Android Help - Google Support
Each user profile has a personal space on the device for custom Home screens, accounts, apps, settings, and more. Learn about what users...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found