public bool ValidarDirecionamentoTermosDeUso()
        {
            bool _result = false;

            try
            {
                Thread.Sleep(1000);
                IWebElement TermoDeAceite = ClassDriver.GetInstance().Driver.FindElement(By.XPath("//h2[text()='Termos de Aceite']"));
                util.WaitForElementVisible(TermoDeAceite, 15);

                if (TermoDeAceite.Displayed)
                {
                    _result = true;
                }
                else
                {
                    ClassInfo.GetInstance().LogMessage = "Erro carregamento";
                }
            }
            catch
            {
                util.ScreenshotPrepare();
                ClassInfo.GetInstance().LogMessage = "Erro direcionamento";
            }
            return(_result);
        }
        public bool ValidarDirecionamentoEtapa3()
        {
            bool _result = false;

            try
            {
                IWebElement Validar = ClassDriver.GetInstance().Driver.FindElement(By.XPath("//section[@class='ng-scope']//h2[text()='Dados do Fiador']"));
                util.WaitForElementVisible(Validar, 45);
                if (Validar.Displayed)
                {
                    _result = true;
                }
                else
                {
                    ClassInfo.GetInstance().LogMessage = "else - Erro Validar etapa 3";
                }
            }
            catch
            {
                util.ScreenshotPrepare();
                ClassInfo.GetInstance().LogMessage = "try - Erro Validar etapa 3";
            }

            return(_result);
        }
示例#3
0
        public bool ClicarComeceAgora()
        {
            bool _result = false;

            Thread.Sleep(2000);

            try
            {
                if (btnCadastro.Displayed)
                {
                    btnCadastro.Submit();
                    _result = true;
                    Thread.Sleep(3000);
                }
                else
                {
                    util.ScreenshotPrepare();
                }
            }
            catch
            {
            }
            return(_result);
        }