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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        public bool AddCpf(string cpf)
        {
            bool _result = false;

            try
            {
                ClassDriver.GetInstance().Driver.Navigate().Refresh();

                util.WaitForElementVisible(InputCpf, 30);
                if (InputCpf.Displayed)
                {
                    InputRenda.Clear();
                    InputCpf.Click();
                    InputCpf.SendKeys(cpf);
                    _result = true;
                    Thread.Sleep(500);
                }
            }
            catch
            {
            }
            return(_result);
        }