public void ValidatePageFields()
        {
            String Header = WebDriverUtility.GetText(WorkExceptionHeader).Trim();

            Assert.AreEqual("Work Exception", Header);

            String Description = WebDriverUtility.GetText(WorkExceptionDescription).Trim();

            Assert.AreEqual("Review Work Exceptions and Reprocess or Void", Description);
            WebDriverUtility.Wait();
            Assert.IsTrue(WebDriverUtility.IsEnabled(Search));
            Assert.IsTrue(WebDriverUtility.IsEnabled(ManageNotification));
            Assert.IsTrue(WebDriverUtility.IsEnabled(ExportToExcel));
            Assert.IsFalse(WebDriverUtility.IsEnabled(Reprocess));
            Assert.IsTrue(WebDriverUtility.IsDisplayed(KendoGrid));
        }
Exemple #2
0
        public void InValidataValidation()
        {
            WebDriverUtility.IsDisplayed(settingsModelPopup);
            WebDriverUtility.IsDisplayed(UserName);
            WebDriverUtility.Wait(10000);
            String text = UserName.GetAttribute("fieldvalue");

            int count = text.Length;

            for (int i = 0; i < count; i++)
            {
                UserName.SendKeys(Keys.Backspace);
            }

            WebDriverUtility.Scrollintoview(SaveButton);
            WebDriverUtility.WaitForElement(SaveButton);
            Assert.IsFalse(WebDriverUtility.IsEnabled(SaveButton));
            WebDriverUtility.ClickOn(CloseSettings);
        }