public static void AfterScenario() { var driver = Browser.Current; if (driver == null) { return; } foreach (var windowHandle in driver.WindowHandles) { driver.SwitchTo().Window(windowHandle).Close(); } webServer.Dispose(); }
public static void AfterScenario() { var driver = Browser.Current; if (driver == null) { return; } foreach (var windowHandle in driver.WindowHandles) { driver.SwitchTo().Window(windowHandle).Close(); } webServer.Dispose(); }