예제 #1
0
        public static void EnterTextToCurrentElement(string textAlias)
        {
            PageElement currentElement = ScenarioContext.Current.Element();
            string      text           = Alias.ResolveAsString(textAlias);

            currentElement.Clear();
            currentElement.TypeText(text);
        }
예제 #2
0
        public static void ClearElement(string alias)
        {
            PageElement element = PageElement.GetElementByAlias(alias);

            ScenarioContext.Current.SetElement(element);

            element.Clear();
        }
예제 #3
0
        public static void EnterTextToInput(string textAlias, string alias)
        {
            PageElement element = PageElement.GetElementByAlias(alias);

            ScenarioContext.Current.SetElement(element);
            string text = Alias.ResolveAsString(textAlias);

            element.Clear();
            element.TypeText(text);
        }
예제 #4
0
        public void Not_Visible_Exception_Caught()
        {
            SetUp("edge", 59000, "https://kwaylz.kavi.com/higherlogic/mm/account#/accounts");

            var username    = new PageElement(By.Id("username"));
            var password    = new PageElement(By.Id("password"));
            var loginButton = new PageElement(ByExtension.AttributeValue("value", "Login"));

            username.Clear();
            username.SendKeys("*****@*****.**");
            password.Click();
            password.Clear();
            password.SendKeys("Tester1319");
            loginButton.Click();

            var logoutButton = new PageElement(ByExtension.PartialHref("logout"));

            logoutButton.Click();
        }
예제 #5
0
        public static void ClearCurrenctElement()
        {
            PageElement element = ScenarioContext.Current.Element();

            element.Clear();
        }