abhishek1997
2 years agoContributor
Run Tests in Edge Browser Normal Mode & InPrivate Mode simultaneously
Hello Team,
We are facing some difficulties while testing the web applications parallelly in one single browser.
Here is the scenario, where we have two web applications in which one application opens in Edge Browser normal mode and another one opens in Edge Browser InCognito mode. Here is the sample code in Python.
# Launch GMAIL in Edge InCognito Mode
def LaunchInPvtMode():
gmailURL = "www.gmail.com"
Browsers.Item[btEdge].RunOptions = "-inprivate"
Browsers.Item[btEdge].Run(gmailURL)
# Launch GOOGLE in Edge Normal Mode
def LaunchInNormalMode():
googleURL = "www.google.com"
Browsers.Item[btEdge].Run(googleURL)
Now the conflict is:
- If I run LaunchInNormalMode(), the browser is opening in the normal mode and again I am running LaunchInPvtMode() it is opening in the same browser instance and not opening in the private mode.
- If I run LaunchInPvtMode(), the browser is opening in the private mode and again I am running LaunchInNormalMode() it is opening in the same browser instance and not opening in the normal mode.
So I want these two python functions to be opened in two Edge browser instances simultaneously (which is Normal Mode & Private Mode). So I will switch between both Normal Mode & Private Mode simultaneously and continue my test cases.
Note: The tests are running in Edge Browser only not on Chrome
Is there any solution for this scenario ?