# Adding headers in UI automation

**URL:** <https://forum.robotframework.org/t/adding-headers-in-ui-automation/642>\
**Category:** Robot Framework\
**Created:** [24 August 2020 10:58 UTC](https://forum.robotframework.org/t/adding-headers-in-ui-automation/642 "2020-08-24T10:58:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sannasaravanan](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@sannasaravanan](https://forum.robotframework.org/u/sannasaravanan)\
**Post date:** [24 August 2020 10:58 UTC](https://forum.robotframework.org/t/adding-headers-in-ui-automation/642/1 "2020-08-24T10:58:19Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [10 February 2021 11:31 UTC](https://forum.robotframework.org/t/adding-headers-in-ui-automation/642/2 "2021-02-10T11:31:05Z")

</div>

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](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Execute%20Javascript)

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.
