public bool InformarRendaInferiorPrimeiroFiador() { bool _result = false; try { util.WaitForElementVisible(InputRenda, 30); if (InputRenda.Displayed) { InputRenda.Clear(); var msg = ClassDriver.GetInstance().Driver.FindElement(By.XPath("//form[@name='formCadastroFiador']//div[@class='row'][3]//div[2]//div[1]//div[1] //div[1]//div[1]//div[2]")).Text; var text = msg.Split(' '); var valor = text[8].Replace("R$", ""); valor = valor.Replace(".", ""); valor = valor.Replace(",", ""); //Valor mínimo dívidido por dois var vlr = float.Parse(valor) / 2; valor = vlr.ToString(); InputRenda.SendKeys(valor); _result = true; Thread.Sleep(500); } } catch { } return(_result); }
public bool InserirDtaERenda(string[] arg) { bool _result = false; try { util.WaitForElementVisible(InputDtaNasc, 15); if (InputDtaNasc.Displayed) { InputDtaNasc.Click(); Thread.Sleep(300); InputDtaNasc.SendKeys(arg[1]); Thread.Sleep(300); InputRenda.Click(); Thread.Sleep(300); InputRenda.SendKeys(arg[0]); Thread.Sleep(1000); _result = true; } else { } } catch { } return(_result); }
public bool InformarRenda(string arg) { bool _result = false; try { util.WaitForElementVisible(InputRenda, 30); if (InputRenda.Displayed) { InputRenda.Click(); InputRenda.Clear(); InputRenda.SendKeys(arg); _result = true; Thread.Sleep(500); } } catch { } return(_result); }
public bool InserirRenda(string arg) { bool _result = false; try { util.WaitForElementVisible(InputRenda, 45); if (InputRenda.Displayed) { InputRenda.Click(); Thread.Sleep(300); InputRenda.SendKeys(arg); _result = true; } else { } } catch { } return(_result); }