Step-1) Login to website-1 in Chrome with User-1, Perform Activity-1, Activity-2, Activity-3
Step-2) Login to website-1 in Chrome with User-2, Perform Activity-4, Activity-5,…
Step-3) Switch to website-1 in Browser where User-1 is logged-in step-1 and perfor few activities
Step-4) Login to website-1 in Chrome with User-3, Perform few activities
Step-5) Switch to Browser where User-2 is logged-in
How we can do multiple user login in same browser?
How to Switch to those browser?
a) I’ve selected “New Session” option in open browser activity, but its not working… its keeping same session.
b) Other thing I can do is I an use different browser for diffrent scenario but I’ve to login with more that 6 user on same website…
c) don’t want to use “hidden” option in browser activity as this is not background automation
Can you please suggest best approach to handle this kind of requirement.
If you open multiple instances of a browser using Open Browser Activity you can save the session in a variable using the UIBrowser Output propriety. Problems can appear when the two browser have the same url but if you do the login first this should not be the case.
When you are trying to do interactions with the multiple sessions you have to add an attach browser were in Input field in Browser Propriety you should specify the browser session that you saved earlier.
In principle this should work but make sure you are not working with two instances of a browser that have the same url.
But Issue is when I have opened browser and logged-in with user-1, on same url I’ve to login with User-2… (for example, we can consider gmail chat, where we’ve to login with multiple user on site http://mail.google.com and perform google chat)