示例#1
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);
        }
示例#2
0
        public void ValidateEmailIDDOBLaguagae(string testStep)
        {
            WebDriverUtility.Clear(UserName);
            WebDriverUtility.EnterText(UserName, Excel.GetValueFromTestStep(testStep, "UserName"));
            WebDriverUtility.ClickOn(settingsModelPopup);
            WebDriverUtility.IsDisplayed(DatePicker);

            WebDriverUtility.ClickOn(DatePickerclick);

            WebDriverUtility.ClickOn(DatePickerMonth);

            WebDriverUtility.ClickOn(DatePickerDate);

            WebDriverUtility.Scrollintoview(ThemeSelection);

            WebDriverUtility.ClickOn(ThemeSelection);

            WebDriverUtility.ClickOn(SaveButton);
        }