Is there any way in UI path to pass headers in use browser activity along with userid and password?

For 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 cert 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 using UI path- 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 help on this UI Automation for BOT is really going to be big help

I do see similar as in below question but not see any solution for UI automation. any working example will be good help as i am new to UI path

UI_2
ui_1

Hello @Hemant_Sudehely

  1. Open Browser and Navigate to Login Page
  2. Input Username
  3. Input Password
  4. Click Login Button

After successful login
5. Extract Bot Access Token from the response or any other location

Use HTTP Request to perform subsequent actions
6. Use HTTP Request activity:

  • Set Endpoint: Your desired URL
  • Set Method: POST, GET, or other as needed
  • Add Headers:
  • Name: Authorization, Value: “Bearer your_bot_access_token”
  • Add other necessary parameters or body content
  • Perform the HTTP Request

Thanks & Cheers!!!

I need to send bot certificate text in login request as header with userid & passowrd to make successful login so not sure if HTTP request activity will work here.

Need assistance to send certificate text as header with userid and password for successful login.

@Hemant_Sudehely

Set endpoint URL
string endpointUrl = “https://your-api-endpoint/login”;

Build authorization header
string authorizationHeader = "BotCertificate " + botCertificateText + " " + Convert.ToBase64String(Encoding.ASCII.GetBytes(username + “:” + password));

Create headers collection
Dictionary<string, string> headers = new Dictionary<string, string>

{ "Content-Type", "application/json" },
{ "Authorization", authorizationHeader }

Send HTTP request
HttpResponseMessage response = HTTPRequest.Send(endpointUrl, “POST”, headers);

Handle response
if (response.IsSuccessStatusCode)
Successful login
else
Handle unsuccessful login

So new to UI path :frowning: but where should i create authorization header in UI Path Browser activity.
My client is using UI path for UI Automation to login to the web site and generating dummy orders.

Now they have this new requirement to pass cert through UI Path browser activity and in browser activity, i dont she any place to write your solution code or something like that other than input an click controls.