Forum Discussion
Have the non inprivate use your default profile.
Browsers.Item[btEdge].Run("http://www.google.com/")
The have the the inprivate use
Browsers.Item[btEdge].RunOptions = "--inprivate --user-data-dir=C:\Temp\ProfileX"
Browsers.Item[btEdge].Run("https://www.w3schools.com/")
and install the extension.
- abhishek19972 years agoContributor
No it's not working, and we cannot install TestComplete extension while running or while executing the function and it is not a good way of working. If we run the main function only one browser is opening and executing the two functions.
def LaunchOne(): Browsers.Item[btEdge].Run("http://www.google.com/") def LaunchTwo(): Browsers.Item[btEdge].RunOptions = "--inprivate --user-data-dir=C:\Temp\ProfileX" Browsers.Item[btEdge].Run("https://www.w3schools.com/") def main(): LaunchOne() LaunchTwo()
If we use below function, both functions are opening in Private Mode and in Logs we are getting The Browser is already running.
def main(): LaunchTwo() LaunchOne()
We cannot use Chrome browser and it is restricted by our organization, that is why we are running our web applications in One single browser simultaneously.
So my requirement is mentioned below.
Assume we have two Web Apps i.e., Google and Gmail and these should run simultaneously.
Edge Browser - Profile-1 - Normal Mode : run tests for Google.com
Edge Browser - Profile-2 - InCognito Mode : run tests for Gmail.com
Related Content
- 2 years ago
Recent Discussions
- 20 hours ago
- 20 hours ago
- 5 days ago