public static void Close() { if (ScenarioContext.Current.ContainsKey("browser")) WebBrowser.Current.Close(); }