public void LoginFailedTest() { Pages.HomePage.GoTo(); Pages.LoginPage.GoTo(); Pages.LoginPage.DoLogin(TextValuesGenerator.EmailGenerator(), TextValuesGenerator.TextGenerator(10)); Assert.IsFalse(Pages.MainPage.IsAt()); }
public List <object> ChangeResponsibleName() { var lst = new List <object>(); Browser.RetrySearchElementList(lstDivResponsibles); foreach (var element in lstDivResponsibles) { var repeatedDiv = element.FindElements(By.TagName("div")); var inputName = repeatedDiv[0].FindElement(By.XPath("input[@placeholder='Nome']")); var inputEmail = repeatedDiv[1].FindElement(By.XPath("input[@placeholder='Email']")); var inputPhone = repeatedDiv[2].FindElement(By.XPath("input[@placeholder='Número de Telefone']")); inputName.Clear(); inputEmail.Clear(); inputPhone.Clear(); inputName.SendKeys(TextValuesGenerator.TextGenerator(5)); inputEmail.SendKeys(TextValuesGenerator.EmailGenerator()); inputPhone.SendKeys(TextValuesGenerator.PhoneGenerator()); inputPhone.SendKeys(Keys.Tab); lst.Add(new { name = inputName.GetAttribute("value"), inputEmail = inputEmail.GetAttribute("value"), phone = inputPhone.GetAttribute("value") }); } //Must Wait a moment for angular to save changes made Thread.Sleep(1000); return(lst); }