public bool PreencherDadosFiador() { bool _result = false; string rg = util.GerarRg(); try { util.WaitForElementVisible(InputRg, 15); if (InputRg.Displayed) { InputRg.Click(); Thread.Sleep(300); InputRg.SendKeys(rg); Thread.Sleep(300); util.ClickJS(RadioNacio); Thread.Sleep(300); InputNomeMae.Click(); Thread.Sleep(300); InputNomeMae.SendKeys(massa.nomeMae); Thread.Sleep(300); ListEstCivil.Click(); Thread.Sleep(300); var selectElement = new SelectElement(ListEstCivil); selectElement.SelectByIndex(1); ListEstCivil.Click(); Thread.Sleep(300); util.ClickJS(RadioUniao); Thread.Sleep(300); SelectProfissao.Click(); Thread.Sleep(300); OptProfissao.Click(); Thread.Sleep(300); _result = true; } } catch { } return(_result); }
public bool PreencherDadosPessoais() { bool _result = false; util.ScrollElementoPage(InputRg); Thread.Sleep(3000); string rg = util.GerarRg(); try { util.WaitForElementVisible(InputRg, 30); if (InputRg.Displayed) { Thread.Sleep(300); InputRg.Click(); Thread.Sleep(300); InputRg.SendKeys(rg); Thread.Sleep(300); InputDtaNasc.Click(); Thread.Sleep(300); InputDtaNasc.SendKeys(massa.dtaNasc); Thread.Sleep(300); RadioMasc.Click(); Thread.Sleep(300); RadioNacio.Click(); Thread.Sleep(300); ListEstCivil.Click(); Thread.Sleep(300); var selectElement = new SelectElement(ListEstCivil); selectElement.SelectByIndex(1); Thread.Sleep(300); RadioUniao.Click(); Thread.Sleep(1000); _result = true; } } catch { } return(_result); }
public bool PreencherDados() { bool _result = false; try { util.WaitForElementVisible(InputNome, 45); if (InputNome.Displayed) { InputNome.Click(); Thread.Sleep(250); InputNome.SendKeys(Massa.nome + " " + Massa.sobrenome); InputCpf.Click(); Thread.Sleep(250); //InputCpf.SendKeys(UpdateStatusDB.PegarCpf()); InputRg.Click(); Thread.Sleep(250); InputRg.SendKeys(util.GerarRg()); InputDtaNasc.Click(); Thread.Sleep(250); InputDtaNasc.SendKeys(Massa.dtaNasc); InputNMatric.Click(); Thread.Sleep(250); InputNMatric.SendKeys(Massa.matricula); Thread.Sleep(500); _result = true; } } catch { } return(_result); }