Any possibilities to pass additional headers in use browser activity

For Retail Link website, we have an update in login process to access the website using bot user accounts (specifically created to perform automations). As a part of this, a bot access token is generated for these accounts, and needs to be passed (as a header) at the time of login along with the bot-account credentials. We are having trouble implementing it in a browser - as we only have Input fields to enter username and password in the login page, and we are not sure where this token can be passed. Any thoughts on this please.


Hi @gowtham.jayavel - It looks like you have to use APIs to pass this token. You might have to use HTTP request activities. Check the below link

@ushu Thanks for the response, actually this is UiAutomation use case and we are trying to find the solution to the manipulate/add an additional header to the http request made during the UI Interaction.

keep in mind, that the shared guide is mentioning a POST method. Using an UiAutomation e.g. open URL os more about using a Get Method.

Maybe a custom / own hosted HTML Form offered for the UiAutomation can do the bridge by sending the needed info by a post and then let take over the UiAutomation to further work with (Use Browser/Attach Browser)

Hi, Did you find a solution to this? I have the same problem. I just got a bot account, I’m able to authenticate, but I can’t get any further.

Appreciate any input you may have.
Thank you

You can have a look at this thread. It might be helpful.

For wb.Navigate you try to use Navigate activity. Though I am not sure how much helpful it would be.

Below is quoted text from the thread

With help from this question, I dropped a hidden WebBrowser control on my form, and then launched the URL in an external browser, with Authorization header, as follows…

' wb is the WebBrowser 
Dim hdr = "Authorization: Basic " & Convert.ToBase64String(Encoding.UTF8.GetBytes("EncodedInfoHere".ToCharArray()))
wb.Navigate(url & unm, "_blank", {}, hdr)

Hi @gowtham.jayavel !
Did you manage to solve this problem? We’re facing the same issue.

Hi @gowtham.jayavel and @Marta! Not sure if it’s the best/more correct solution, but I was able to make the login by updating the website (Retail Link) cookies with the set-cookie information on the POST request response headers and then moving to the homepage (Retail Link).

this is the set-cookie information on response header:

Please find an example atached. Just update the x-bot-token, username and password on the Arguments section

teste-login-walmart.1.0.1.nupkg (12.8 KB)

Hi ,
Thanks for sharing. Your solution worked for me But after deploying in production i am getting this error Get Browser Data: 'The browser extension you are using is missing the ‘cookies’ permission Do you have any idea what is causing this issue ? i tried disabling the cookies in my machine to replicate the issue but not getting this error in local machine.

Hi @aunekhan ! Glad to know the solution helped you. Unfortunately I’m not familiar with this error, but maybe it’s the difference in version between your machine and production server? Or some specific policy/rule that’s only applied to the prod server?

I’m using UiPath Extension on Chrome version 23.4.2 and Chrome version 117.0.5938.62. My Studio is on 2023.4.4.

I’ve also found this topic with other guidelines on this error:

Hope it helps

Do you think we can login by JavaScript code using inject js activity?