public AddressPageObject fillForm(string clientType, string promoCode, string name, string email, string birthDate, string gender, string maritalStatus) { TextName.SendKeys(name); TextEmail.SendKeys(email); if (clientType == "Person") { RadioClientType.FindElement(By.XPath("//label[text()=" + "'" + clientType + "']")).Click(); TextPromoCode.SendKeys(promoCode); TextBirthDate.SendKeys(birthDate); SelectGender.SendKeys(gender); SelectGender.FindElement(By.XPath("//select/option[text()=" + "'" + maritalStatus + "'" + "]")).Click(); BtnNext.Click(); return(new AddressPageObject(driver)); } RadioClientType.FindElement(By.XPath("//label[text()=" + "'" + clientType + "']")).Click(); TextPromoCode.SendKeys(promoCode); BtnNext.Click(); return(new AddressPageObject(driver)); }
public void preencherEmail(String email) { TextEmail.SendKeys(email); }
public void Login(string email, string password) { TextEmail.SendKeys(email); TextPassword.SendKeys(password); ButtonLogin.Click(); }