public static void EnterTextToCurrentElement(string textAlias) { PageElement currentElement = ScenarioContext.Current.Element(); string text = Alias.ResolveAsString(textAlias); currentElement.Clear(); currentElement.TypeText(text); }
public static void ClearElement(string alias) { PageElement element = PageElement.GetElementByAlias(alias); ScenarioContext.Current.SetElement(element); element.Clear(); }
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); }
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(); }
public static void ClearCurrenctElement() { PageElement element = ScenarioContext.Current.Element(); element.Clear(); }