public void InserirDadosPessoais() { IWebElement numero = driver.FindElement(By.Id("numero")); numero.Clear(); numero.SendKeys("591"); IWebElement comp = driver.FindElement(By.Id("complemento")); comp.Clear(); comp.SendKeys("Apt 105"); IWebElement rg = driver.FindElement(By.Id("rg")); rg.Clear(); rg.SendKeys(Gerador.gerarNumero()); IWebElement OrgaoExp = driver.FindElement(By.Id("orgaoExpedidor")); OrgaoExp.Clear(); OrgaoExp.SendKeys("Detran"); IWebElement name = driver.FindElement(By.Id("name")); name.Clear(); name.SendKeys("Teste TI"); IWebElement motherName = driver.FindElement(By.Id("motherName")); motherName.Clear(); motherName.SendKeys("Teste TI"); IWebElement birth = driver.FindElement(By.Id("birthday")); birth.Clear(); birth.SendKeys("01011990"); IWebElement email = driver.FindElement(By.Id("email")); email.Clear(); email.SendKeys(Gerador.gerarEmail()); IWebElement phone = driver.FindElement(By.Id("phone")); phone.Clear(); phone.SendKeys(Gerador.gerarNumeroCelular()); IWebElement btnContinuar = driver.FindElement(By.CssSelector("button[ng-click='personalData.submitPersonalData(frmValidate)']")); btnContinuar.Click(); }
public void InserirDadosPessoais() { numero.Clear(); numero.SendKeys("591"); complemento.Clear(); complemento.SendKeys("Apt 105"); rg.Clear(); rg.SendKeys(Gerador.gerarNumero()); OrgaoExp.Clear(); OrgaoExp.SendKeys("Detran"); name.Clear(); name.SendKeys("Teste TI"); motherName.Clear(); motherName.SendKeys("Teste TI"); birth.Clear(); birth.SendKeys("01011990"); email.Clear(); email.SendKeys(Gerador.gerarEmail()); phone.Clear(); phone.SendKeys(Gerador.gerarNumeroCelular()); btnContinuar.Click(); }
public void SubmitCpf() { IWebElement cpf = driver.FindElement(By.Id("cpf")); cpf.SendKeys(Gerador.gerarCpf()); }