🌟Supercharge your web experience: Get the most out of Chrome with multiple profiles!
Channel: AUTOHOTKEY Gurus
Date: 28/05/2022

Creating multiple instances of Chrome isn't difficult with Rufaydium however, using separate profiles, is a bit more complex.  The Chrome driver locks the folder so you'll need to create separate folders for your profiles...
Learn more about Rufaydium here: https://the-Automator.com/Rufaydium

TLDR: Creating multiple copies of the Chrome profile folder allows for the use of multiple Chrome instances with separate profiles.

1. 00:00 🤖 Control multiple Chrome instances with separate profiles in the same script using classes.
 1.1 Yes, it is possible to control multiple Chrome instances with separate profiles in the same script using classes.

2. 00:42 🤔 Chrome driver won't allow two profiles with same user data.
 2.1 Chrome driver prevents running two profiles with the same user data due to it trying to write into the same folder.

3. 01:25 🔎 Find user profiles in the Google Chrome Pro folder.
 3.1 In the Google Chrome Pro folder, you can find the user data folder with profiles for each user.

4. 01:58 💡 Create two copies of the folder and access one with each profile to fix the issue.
 4.1 Creating a copy of the folder and accessing one with one profile and the other with the second profile solves the issue.

5. 02:54 🤔 Created arrays to store objects, giving each instance its own chrome and page.
 5.1 I created arrays for chromes and pages, each index containing an object, so each instance has its own chrome and page.

6. 03:37 🔑 Create an object to store profile capabilities based on their index.
 6.1 Create an object for each profile and set the capabilities to the corresponding profile index.

7. 04:29 🤔 If index is one, set user data directory to blank, if two, set to different profile folder.
 7.1 If index is one, set user data directory to blank, if index is two, set user data directory to a different profile folder.

8. 05:36 💻 Copying the Chrome profile folder multiple times allows you to open multiple Chrome instances with different profiles.
 8.1 Using classes, you can open multiple instances of Chrome and refer to them in your script, but if you want to use multiple profiles you have to copy the folder multiple times.


Summary for https://youtu.be/rffEWx0ZOKY by www.eightify.app