Example #1
0
        public bool IsTemplateTypeMandatory()
        {
            templateName.Clear();
            Thread.Sleep(100);
            templateName.SendKeys(TemplateSearchScreen.RandomString(6));
            Thread.Sleep(100);
            SeleniumHelper.ClickByJS(SeleniumHelper.FindElement(By.CssSelector(SeleniumHelper.AutomationId("well_know_action_save"))));
            Wait.WaitForElementDisplayed(By.CssSelector("[data-automation-id='status_error']"));
            bool returnVal = statusError.Displayed;

            return(returnVal);
        }
Example #2
0
        //Method to check whether Template Name text field is accessbile
        public bool IsTemplateNameAccessible()
        {
            if (new TemplateSearchScreen().IsCreateNewTemplateDisplayed())
            {
                Thread.Sleep(200);
                createNewTemplate.Click();
                BaseSeleniumComponents.WaitUntilDisplayed(By.Name("NameOfTemplate"));
                String randomName = TemplateSearchScreen.RandomString(5);
                templateName.SendKeys(randomName);

                bool returnVal = templateName.GetAttribute("value") == randomName;
                //TemplateSearchScreen.closeManageMsgTab(manageMsgCloseTab, manageMsgWarningDontSave);
                return(returnVal);
            }
            else
            {
                return(false);
            }
        }