I want to open the same url in multiple browsers windows. Like manually using Ctrl + N we can open the same browser window(same url).
how can we achive this in WebAii?
You can open and close new browser instances with coded steps. Since Test Studio automatically launches and closes the main browser window, you will have to manually launch a new instance and close it after the desired actions and verifications are performed. Once closed, focus returns to the main window and it is closed by Test Studio upon test completion.
//Launch new browser window
Manager.LaunchNewBrowser();
//Close the last window opened
ActiveBrowser.Close();
See the attached test for an example. If you like to navigate to a page in code, here's how to do that: