Adding headers in UI automation

Is there any possibilities to add the headers in the UI automation.
My application requires iv-user header information to login. I had used ModifyHeaders for chrome browser for manual test and need support to automate it. I had tried using BrowserMobProxyLibrary but it’s not helping much. is there any other solution?

Thanks in Advance :slight_smile:

Hi Saravanan,

I’ve never tried to do this, so I don’t know if it could work but it might help.

If you can find a way to add the header through javascript.

Then you could potentially add the header using SeleniumLibrary’s Execute Javascript

You could potentially use the console of devtools in your browser to check how well the javascript works first and when you have something that will work try using Execute Javascript in your robot file.

Good luck, and I hope this helps you find a solution,

Dave.