示例#1
0
        public void ThenTheEmailTemplateShouldBeDeletedFromTheDatabase()
        {
            Thread.Sleep(1000);
            TextBoxHelper.ClearText(By.XPath("//input[@placeholder='Search in Template...']"));

            TextBoxHelper.TypeInTexBox(By.XPath("//input[@placeholder='Search in Template...']"), NameEmailTemplate);
            Thread.Sleep(1000);
            if (ObjectRepository.Driver.FindElement(By.XPath("//div[contains(text(),'No Template Found!')]")).Displayed)
            {
                Logger.Info("Verified that the templates has been deleted successfully");
            }
            else
            {
                Logger.Info("Template is still visible in list after deleting");
            }
        }