I'm trying to execute some CodedUI test actions in Visual Studio 2012 using various browsers.
In order to execute several test methods without losing the browser window that is open, for IE I've configured:
Global.browserWindow = BrowserWindow.Launch(new Uri(URL)); Global.browserWindow.CloseOnPlaybackCleanup = false;
For other browsers (tried out with Chrome) before instantiating the above variable, I changed the
BrowserWindow.CurrentBrowser = "Chrome";
I've installed the extension: Selenium components for Cross Browser Testing and also downloaded the
chromediver.exe (which is required for this configuration).
I'm able to start the first
TestMethod that launches the Chrome browser and performs the login into the application.
I have in the
Ordertest other test methods that should be executed after that login, but the main issue is that the chrome window is closed after the first test is executed.
I've also tried to start the browser within a
TestInitialize method but the behavior is the same.
Does anyone have any idea of how to keep the non-IE browser open between tests?