I am using SeleniumLibrary which is a wrapper for Selenium to use with Robot Framework.
In some cases I need to start the browser as a different user because the application I am testing will otherwise use my Windows credentials (SSO) which I do not want.
This is easy to do manually with the Windows "run as" feature. I can also automate this in various ways.
However: I need to automate this "run as" using SeleniumLibrary, because if the browser isn't started using Selenium, I can't automate my actions in it using Selenium either.
I have looked into desired capabilities of the webdriver but there don't seem to be any posibilities there. I have found solutions here that say I should use a browser profile, but without explanation on how to setup such a profile using a different user. I also found this solution but I don't really understand it, it uses Selenium directly which I cannot do and it seems to require the code to run on a different machine with the required user logged in there which isn't a possibility for me.
I need to be able to run a browser on the same machine without it using the credentials of the logged in Windows user.
TL/DR version: How can I start a browser session using "open browser" or "create webdriver" keywords in SeleniumLibrary?
The solution needs to work with the common browsers IE, Chrome and Firefox (and possibly Edge)