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.

How to automate non-default profile dynamically?

See original GitHub issue

If chrome is launched with Profile 1:

await launch({
  userDataDir: <PROFILE_NAME>, // `Profile 1`
})

Can we execute an event on Profile 2?

Maybe a better question is what kind of boundary is this profile boundary? I can launch with Profile 1, then manually switch profiles to Profile 2. If so, is there a way to do the same from code? Maybe something via devtools protocol?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
paulirishcommented, Sep 18, 2019

Can I launch chrome binary with multiple profiles

well… you can use any user-data-dir. and a single user-data-dir can contain multiple profiles. but there is a default profile. and it will use that one.

and yah… you can’t change it (or open a new window using a diff one) using any automated way. the devtools protocol doesnt deal with stuff like that.

1reaction
paulirishcommented, Sep 17, 2019

https://vanilla.aslushnikov.com/?Target.createBrowserContext is kinda similar but not

you currently can’t dynamically change what profile is being used by chrome. or launch a new chrome window with a diff profile folder.

the chrome binary must be relaunched.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating Ingest Profiles for Dynamic Delivery
This topic provides an overview of how to create custom ingest profiles for use with Dynamic Delivery transcoding.
Read more >
Dynamic Sender Profile - Salesforce Help
To use dynamic sender profiles with Marketing Cloud Connect, create and map attributes across clouds, and build a sender profile with those attributes....
Read more >
How to create dynamic configuration files using Ansible ...
More about automation · Define a template · Using variables · Conditional configuration · Use Ansible facts · Looping · Define default values...
Read more >
Add users to an environment - Power Platform - Microsoft Learn
... that have no Dataverse database, because all users in the organization are present in these environments by default. However, for a user...
Read more >
Create a Setup or Dynamic profile
NOTE — If you want to use a profile template (recommended configurations) instead of creating one from scratch, then Dynamic Edition is set...
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