There are some activities that i have to perform like login in, type something and do some clicks. But the twist is I have to First login with user (USER_1) and again i have to open another browser with same url and login with 2nd user (USER_2) and perform same activities.
I can do this by opening 1 browser at a time and do activities and close it and do same for another browser. But there are 4 steps to login with (USER_1) & (USER_2) which mean i need to do login 4 times, which is time consuming.
My aim is to keep browser open with user logged in, but i wanna know how robot knows in which browser to click and type, as the browser URL is same.
I am not sure about it but if you have 2 browser open one in normal and one in private mode and you keep all the activities in there container i.e. use browser scope then it should work fine try this and let me know if that works for you or not in classic folder we used to have browser variable that stores all information of that particular browser i dont if that we have in modern or not
Happy Automation!
you can use output element from the first activity to get the opened browser as output element and then use it as input element in further activities based on which user screen you want to use