How to switch Chrome profiles with Uipath automation

Hi All,

I have to automate one work and in that i have to switch between 3 chrome profiles how to achieve this with UiPath ?

Hi,

I hope this will help you,

  1. Drag and drop a “Navigate To” activity into the workflow. This activity allows you to navigate to a specific URL within the browser.
  2. In the properties of the “Navigate To” activity, set the URL you want to navigate to.

Thank you

@kitty123

use Existing browser Tab into Attachbrowser…

or
Pass Browser output to “Activate” Activity.

Regards,

Prasanth Kumar Manivannan
BattleBots!!

@PrasanthManivannan @rlgandu

Thanks for your response,

Let me explain more detail, I have 3 chrome profile names in excel. I read the values from excel and stored in a Data table.
eg : First my automation should start and open profile 1 and then it should open google page. Next the profile 2 should open in chrome then it should open google page.

How to achieve this?

check the image

Hello @kitty123
Use Start Process activity and pass argument like this
"--profile-directory=""Default""" to open default profile
"--profile-directory=""Profile 1""" to open Profile 1
"--profile-directory=""Profile 2""" to open Profile 2 etc.


You can check this directory for all available Profiles
C:\Users\<user ID>\AppData\Local\Google\Chrome\User Data

2 Likes

@AkshaySandhu

I have just tried to open one profile but the facebook is opening in the recent profile i closed its not opening in the given profile.

Dont use Open Browser activity.
Start Process will automatically open Chrome with desired profile. Just attached to browser once its opened.
Use pre-defined profile directory names i.e. Default,Profile 1, Profile 2 etc.

@AkshaySandhu Thanks for the response when i use single activity it is working but in the below process while taking the profile list from excel it is not working.

please correct me if i did any mistake

It seems that you are using profilePath variable instead of CurrentRow.
In Argument section pass CurrentRow("Profile_Directory_Name").ToString
profilePath variable is going to have index of current row in For Each activity (check Output section of For Each activity).

Ok, Profile directory name what i have to give

In here Profile_Directory_Name depends on the column name in Chrome Profiles excel file. Show us the screenshot of that excel file.

Its just column A but i tried this already not working
image

getting this error
image

Please a look into the attached sample project. It should give you fairly good idea on logic.
Chrome_Profiles.zip (10.4 KB)

Same error

image

Compare given project with your project. There must be steps that you are missing.
Run the sample project and your project in debug mode. You should be able to identify the issue.