예제 #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);
        }