Open Chrome Browser as Different User

Hi Experts,

I need to open the chrome browser as different user, can any one help/guide on how to achieve this ?

Manually if we click on Chrome icon and shift + right click, it gives option to run as different user need to achieve same through Ui Path BOT

image

Any help is appriciated

Thanks,

@AjitDeshpande - you can try to open chrome with below command + different user name
… like below

C:\Users\userXYZ>runas /user:userABC C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe"

Hi @GBK ,

Thanks for the reply

Tried with this command it is asking password in CMD window, and even if provided with correct password nothing happnes

Thanks

@AjitDeshpande -oh ok… i used this command to open different app…(not chrome) …

maybe can check any option available in powershell script … scripts are better than struggling to automate with click…

Hello, you can try this:

"$Cred = New-Object System.Management.Automation.PSCredential -ArgumentList $Username,$Password
Start-Process 'C:\Program Files\Google\Chrome\Application\chrome.exe' -WorkingDirectory 'C:\Program Files\Google\Chrome\Application\' -ArgumentList ($WebPage) -Credential ($Cred)"

But if you open browse as different user, you lost every selectors :frowning: