Пример #1
0
        public void AddNewEnvironment(string newEnvironmentName)
        {
            ToolsButton.Click();
            var options = DropdownHelpers.GetDropdownList(ToolsMenuDropdown, "li");

            Thread.Sleep(1000);
            options[3].Click();
            SecondEnvNameInput.SendKeys(newEnvironmentName);
            AddEnvironmentButton.Click();
            Thread.Sleep(1000);
            CloseModal.Click();
        }
Пример #2
0
        public void AddFeatureToggle(string newFeatureToggleName)
        {
            ToolsButton.Click();
            var options = DropdownHelpers.GetDropdownList(ToolsMenuDropdown, "li");

            Thread.Sleep(1000);
            options[1].Click();
            FeatureToggleNameInput.SendKeys(newFeatureToggleName);
            NotesInput.SendKeys("test");
            AddFeatureToggleButton.Click();
            Thread.Sleep(1000);
            CloseModal.Click();
        }
Пример #3
0
        public void AddNewApplication(string newApplicationName, string firstEnvName)
        {
            ToolsButton.Click();
            var options = DropdownHelpers.GetDropdownList(ToolsMenuDropdown, "li");

            Thread.Sleep(1000);
            options[2].Click();
            ApplicationNameInput.SendKeys(newApplicationName);
            FirstEnvNameInput.SendKeys(firstEnvName);
            AddApplicationButton.Click();
            Thread.Sleep(1000);
            CloseModal.Click();
        }
Пример #4
0
        public bool ApplicationNameExists(string applicationName)
        {
            Thread.Sleep(1000);
            SelectApplication.Click();
            var applications      = DropdownHelpers.GetDropdownList(ApplicationsDropdown, "li");
            var applicationsCount = applications.Count;

            for (var i = 0; i < applicationsCount; i++)
            {
                if (applications[i].Text.Equals(applicationName))
                {
                    return(true);
                }
            }

            return(false);
        }
Пример #5
0
        public void SelectASpecificApplication(string applicationName)
        {
            Thread.Sleep(1000);
            SelectApplication.Click();
            var applications      = DropdownHelpers.GetDropdownList(ApplicationsDropdown, "li");
            var applicationsCount = applications.Count;

            for (var i = 0; i < applicationsCount; i++)
            {
                if (applications[i].Text != applicationName)
                {
                    continue;
                }
                applications[i].Click();
                break;
            }
        }