private void StudioVersionAdded(object sender, VersionEventArgs e) { BrowserType type = GetBrowserType(e.Version.Settings.GetMultipleChoiceSetting("BrowserType")); if (!Selenium.ContainsKey(type)) { (bool debugModeOn, SettingsCollection browserSettings)settings = GetDebugSettings(Studio.CurrentProject.Settings.GetSubSettings("debugSettings"), type); Studio.ScheduleBackgroundTask(new StartSeleniumTask(type, settings.browserSettings)); } }
public static bool CheckSelenium(BrowserType type) { if (Selenium.ContainsKey(type)) { return(true); } else { ErrorAlert.Show("Please wait until selenium has started."); return(false); } }