Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
 public static bool CheckSelenium(BrowserType type)
 {
     if (Selenium.ContainsKey(type))
     {
         return(true);
     }
     else
     {
         ErrorAlert.Show("Please wait until selenium has started.");
         return(false);
     }
 }