Skip to content
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

Using specific Chrome profile #8957

Closed
connorjclark opened this issue May 15, 2019 · 6 comments
Closed

Using specific Chrome profile #8957

connorjclark opened this issue May 15, 2019 · 6 comments
Assignees

Comments

@connorjclark
Copy link
Collaborator

connorjclark commented May 15, 2019

Working on docs for authenticated usages of LH (#1418). Want to make sure I'm not overlooking something - unclear if this is meant to work already.

Looks like our usage of chrome-launcher always makes a new user data dir, and thus a new profile, and deletes it every run. To actually use an existing profile I think we need to pass "userDataDir: false" to ChromeLauncher.launch.

Was it expected that just using chrome-flags="--profile-directory=..." would work? With existing LH, I think you'd need to spin up Chrome yourself and pass a port to LH?

@patrickhulce
Copy link
Collaborator

With existing LH, I think you'd need to spin up Chrome yourself and pass a port to LH?

That's my understanding if you wanted to use your own Chrome profile, yes.

It's been optimized for the common cold load case for sure rather than the authenticated flow for sure, but the good news is we own both if that's something we wanted to change :) (i.e. if --chrome-flags has --user-data-dir pass the right chrome launcher flags)

@connorjclark
Copy link
Collaborator Author

Thanks for clearing that up.

(i.e. if --chrome-flags has --user-data-dir pass the right chrome launcher flags)

I'll see if that works well.

@connorjclark
Copy link
Collaborator Author

Opening because we should do what Patrick says.

@connorjclark connorjclark reopened this Aug 30, 2019
@connorjclark
Copy link
Collaborator Author

fyi finding the name of the profile directory is an annoying experience: https://www.howtogeek.com/255653/how-to-find-your-chrome-profile-folder-on-windows-mac-and-linux/

must look at chrome://version.

@brendankenny
Copy link
Member

@connorjclark are you still interested in this? Should we move this to chrome-launcher?

@paulirish
Copy link
Member

dupe of GoogleChrome/chrome-launcher#172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants