public void AcessoNegado(int navegador, string login = null, string password = null, string screenShotName = null)
        {
            try
            {
                switch (navegador)
                {
                case Navegadores.GoogleChrome:
                    wd = new ChromeDriver();
                    break;

                case Navegadores.Firefox:
                    wd = new FirefoxDriver();
                    break;

                default:
                    break;
                }

                log            = new LoginPage(wd);
                mc             = new MetodosComuns(wd);
                evidenciaTeste = new TestEvidence(wd);

                log.GoTo();
                log.Logar(login, password);

                mc.Valida("Your account may be disabled or blocked or the username/password you entered is incorrect.");
                evidenciaTeste.Capture(screenShotName);
                mc.Fechar();
            }
            catch (Exception)
            {
                throw;
            }
        }
        public void UsuarioAutenticado(int navegador, string login = null, string password = null, string screenShotName = null)
        {
            try
            {
                switch (navegador)
                {
                case Navegadores.GoogleChrome:
                    wd = new ChromeDriver();
                    break;

                case Navegadores.Firefox:
                    wd = new FirefoxDriver();
                    break;

                default:
                    break;
                }

                log            = new LoginPage(wd);
                mc             = new MetodosComuns(wd);
                evidenciaTeste = new TestEvidence(wd);

                log.GoTo();
                log.Logar(login, password);

                log.verificaURL("https://mantis-prova.base2.com.br/my_view_page.php");
                log.verificarTitulo("My View - MantisBT");
                evidenciaTeste.Capture(screenShotName);
                mc.Fechar();
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 3
0
        public async Task <ClassePaginacao <TEntity> > ObterListaPaginada <TEntity2>(DadosPaginacao <TEntity2> dadosPaginacao) where TEntity2 : class
        {
            var dadosPaginar = new DadosPaginacao <TEntity>();

            MetodosComuns.CopyT1T2DiferentClass(dadosPaginacao, dadosPaginar);

            if (dadosPaginar.Pagina <= 0)
            {
                dadosPaginar.Pagina = 1;
            }

            if (string.IsNullOrEmpty(dadosPaginar.Ordenacao))
            {
                dadosPaginar.Ordenacao = dadosPaginar.DataPaginacao.GetType().GetProperties()[0].Name;
            }


            var qtdreg = MetodosComuns.ObterJson("qtdRegistrosPorPagina", "appsettings.json").Value;

            if (dadosPaginar.QuantidadeRegistrosPagina <= 0)
            {
                dadosPaginar.QuantidadeRegistrosPagina = Convert.ToInt32(qtdreg);
            }

            /**/

            return(await repositorio.ObterListaPaginada(dadosPaginar));
        }
Exemplo n.º 4
0
        public void teste(string nomeDaLista)
        {
            MetodosComuns oMetodosComuns = new MetodosComuns();

            LoginCorreto();
            try
            {
                oMetodosComuns.HabilitaRenomearExcluirPlanilha(driver, oMetodosComuns.CapturaElementoDaLista(driver, nomeDaLista, "br.com.cedrotech.fastmobile.dev:id/listName"));
            }
            catch
            {
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnExpandirListas));
                btnExpandirListas.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(btnCriarNovaLista));
                btnCriarNovaLista.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(campoNomeNovaPlanilha));
                campoNomeNovaPlanilha.SendKeys(nomeDaLista);

                espera.Until(ExpectedConditions.ElementToBeClickable(btnSalvar));
                btnSalvar.Click();

                oMetodosComuns.HabilitaRenomearExcluirPlanilha(driver, oMetodosComuns.CapturaElementoDaLista(driver, nomeDaLista, "br.com.cedrotech.fastmobile.dev:id/listName"));
            }
        }
Exemplo n.º 5
0
        public void AcessoOfertasAgregadas(string simboloDoAtivo, string nomeDoMenu)
        {
            MetodosComuns oMetodosComuns = new MetodosComuns();

            try
            {
                LoginCorreto();

                espera.Until(ExpectedConditions.ElementToBeClickable(ativosDaPlanilha));

                var listraDeAtivosDisponiveis = driver.FindElementsById("br.com.cedrotech.fastmobile.dev:id/quoteSimbol");

                var ativoSelecionado = listraDeAtivosDisponiveis.FirstOrDefault(p => p.Text == simboloDoAtivo.ToUpperInvariant());
                ativoSelecionado.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(stringNomeDoAtivo));
                oMetodosComuns.LongPressPosicoesFixas(driver, stringNomeDoAtivo.Location.X, stringNomeDoAtivo.Location.Y, 500, 387);

                var listaDeMenusDisponiveis = driver.FindElementsById("br.com.cedrotech.fastmobile.dev:id/psts_tab_title");

                var menuSelecionado = listaDeMenusDisponiveis.FirstOrDefault(p => p.Text.ToUpperInvariant() == "Ofertas Detalhadas".ToUpperInvariant());
                oMetodosComuns.LongPressPosicoesFixas(driver, menuSelecionado.Location.X, menuSelecionado.Location.Y, 50, 710);

                listaDeMenusDisponiveis = driver.FindElementsById("br.com.cedrotech.fastmobile.dev:id/psts_tab_title");
                menuSelecionado         = listaDeMenusDisponiveis.FirstOrDefault(p => p.Text.ToUpperInvariant() == nomeDoMenu.ToUpperInvariant());
                menuSelecionado.Click();
            }
            catch
            {
                //Inserindo ativo
                espera.Until(ExpectedConditions.ElementToBeClickable(btnAdicionaAtivo));
                btnAdicionaAtivo.Click();

                SelecionaAtivo(simboloDoAtivo, primeiroElementoDaPesquisa);

                espera.Until(ExpectedConditions.ElementToBeClickable(btnAdicionaAtivoDaLista));
                btnAdicionaAtivoDaLista.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(ativosDaPlanilha));

                var listraDeAtivosDisponiveis = driver.FindElementsById("br.com.cedrotech.fastmobile.dev:id/quoteSimbol");

                var ativoSelecionado = listraDeAtivosDisponiveis.FirstOrDefault(p => p.Text == simboloDoAtivo.ToUpperInvariant());
                ativoSelecionado.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(stringNomeDoAtivo));
                oMetodosComuns.LongPressPosicoesFixas(driver, stringNomeDoAtivo.Location.X, stringNomeDoAtivo.Location.Y, 500, 387);

                var listaDeMenusDisponiveis = driver.FindElementsById("br.com.cedrotech.fastmobile.dev:id/psts_tab_title");

                var menuSelecionado = listaDeMenusDisponiveis.FirstOrDefault(p => p.Text.ToUpperInvariant() == "Ofertas Detalhadas".ToUpperInvariant());
                oMetodosComuns.LongPressPosicoesFixas(driver, menuSelecionado.Location.X, menuSelecionado.Location.Y, 50, 710);

                listaDeMenusDisponiveis = driver.FindElementsById("br.com.cedrotech.fastmobile.dev:id/psts_tab_title");
                menuSelecionado         = listaDeMenusDisponiveis.FirstOrDefault(p => p.Text.ToUpperInvariant() == nomeDoMenu.ToUpperInvariant());
                menuSelecionado.Click();
            }
        }
Exemplo n.º 6
0
        public void PesquisaNoticia(string tagNoticia)
        {
            LoginCorreto();
            MetodosComuns oMetodosComuns = new MetodosComuns();

            try
            {
                espera.Until(ExpectedConditions.ElementToBeClickable(menuNoticias));
                menuNoticias.Click();

                Thread.Sleep(3000);

                //Aqui o sistema pesquisa uma notícia que contenha o parâmetro no título e se a pesquisa é infinita ou não
                IWebElement elementoSelecionado = oMetodosComuns.CapturaNoticiaDaLista(driver, tagNoticia, "br.com.cedrotech.fastmobile.dev:id/newsTitle", null, true);

                //Se existe clica na notícia
                if (elementoSelecionado != null)
                {
                    elementoSelecionado.Click();
                }
                //Se não sai do sistema
                else
                {
                    menuMenu.Click();

                    espera.Until(ExpectedConditions.ElementToBeClickable(btnSair));
                    btnSair.Click();

                    espera.Until(ExpectedConditions.ElementToBeClickable(btnConfirmacaoSim));
                    btnConfirmacaoSim.Click();
                }
            }
            catch
            {
                //Aqui o sistema pesquisa uma notícia que contenha o parâmetro no título e se a pesquisa é infinita ou não
                IWebElement elementoSelecionado = oMetodosComuns.CapturaNoticiaDaLista(driver, tagNoticia, "br.com.cedrotech.fastmobile.dev:id/newsTitle", null, true);

                //Se existe clica na notícia
                if (elementoSelecionado != null)
                {
                    elementoSelecionado.Click();
                }
                //Se não sai do sistema
                else
                {
                    menuMenu.Click();

                    espera.Until(ExpectedConditions.ElementToBeClickable(btnSair));
                    btnSair.Click();

                    espera.Until(ExpectedConditions.ElementToBeClickable(btnConfirmacaoSim));
                    btnConfirmacaoSim.Click();
                }
            }
        }
Exemplo n.º 7
0
        public void CopyObjectViewModel()
        {
            //Arrange
            var cop1 = new ClienteTestMethodo {
                DataNascimento = DateTime.Now.AddYears(-30), Idade = 15, Nome = "Francisco Penna"
            };
            var cop2 = new ClienteViewModelTestMethodo {
            };

            // Act
            MetodosComuns.CopyT1T2DiferentClass(cop1, cop2);

            //Assert
            Assert.True(cop2.Nome.Equals(cop1.Nome));
        }
Exemplo n.º 8
0
        public void teste2(string nomeAtivo)
        {
            MetodosComuns oMetodosComuns = new MetodosComuns();

            LoginCorreto();
            try
            {
                oMetodosComuns.HabilitaExclusaoAtivosDaPlanilha(driver, oMetodosComuns.CapturaElementoDaLista(driver, nomeAtivo, "br.com.cedrotech.fastmobile.dev:id/quoteSimbol"));
            }
            catch
            {
                espera.Until(ExpectedConditions.ElementToBeClickable(btnAdicionaAtivo));
                btnAdicionaAtivo.Click();

                oMetodosComuns.AddAtivoNaPlanilhaCotacaoAtual(driver, nomeAtivo);
                oMetodosComuns.HabilitaExclusaoAtivosDaPlanilha(driver, oMetodosComuns.CapturaElementoDaLista(driver, nomeAtivo, "br.com.cedrotech.fastmobile.dev:id/quoteSimbol"));
            }
        }
        public void AtribuirProjetoBs2(int navegador, string login, string password, string NumeroNaoAtribuido, string adiconarTag, string adicionarNotaDoProblema, string screenShotName)
        {
            try
            {
                switch (navegador)
                {
                case Navegadores.GoogleChrome:
                    wd = new ChromeDriver();
                    break;

                case Navegadores.Firefox:
                    wd = new FirefoxDriver();
                    break;

                default:
                    break;
                }

                log             = new LoginPage(wd);
                mc              = new MetodosComuns(wd);
                paginaInicial   = new HomePage(wd);
                detalhesProjeto = new UnassignedPage(wd);
                evidenciaTeste  = new TestEvidence(wd);

                log.GoTo();
                log.Logar(login, password);
                paginaInicial.irParaNaoAtribuido(NumeroNaoAtribuido);
                detalhesProjeto.ValidaDirecionamentoTela(NumeroNaoAtribuido);
                detalhesProjeto.PreencherFormulario(adiconarTag);
                detalhesProjeto.anexarArquivo();
                detalhesProjeto.adicionarNota(adicionarNotaDoProblema);
                evidenciaTeste.Capture(screenShotName);


                mc.Fechar();
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 10
0
        public void InserirDetalhesRelatorioComSucesso(int navegador, string login, string password, string categoria, string reprodutibilidade, string gravidade, string prioridade, string selecionarPerfil, string summary, string description, string screenShotName)
        {
            try
            {
                switch (navegador)
                {
                case Navegadores.GoogleChrome:
                    wd = new ChromeDriver();
                    break;

                case Navegadores.Firefox:
                    wd = new FirefoxDriver();
                    break;

                default:
                    break;
                }

                log              = new LoginPage(wd);
                paginaInicial    = new HomePage(wd);
                reportarProblema = new ReportIssuePage(wd);
                mc             = new MetodosComuns(wd);
                evidenciaTeste = new TestEvidence(wd);

                log.GoTo();
                log.Logar(login, password);
                paginaInicial.irParaInserirDetalhesRelatorio();
                reportarProblema.inserirDetalhesRelatorio(categoria, reprodutibilidade, gravidade, prioridade, selecionarPerfil);
                reportarProblema.camposObg(summary, description);
                reportarProblema.ClicarEnviarRelatorio();
                mc.Valida("Operation successful.");

                evidenciaTeste.Capture(screenShotName);
                mc.Fechar();
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 11
0
        public void deixardePreenchercamposObrigatorios(int navegador, string login, string password, string screenShotName, string summary = null, string description = null)
        {
            try
            {
                switch (navegador)
                {
                case Navegadores.GoogleChrome:
                    wd = new ChromeDriver();
                    break;

                case Navegadores.Firefox:
                    wd = new FirefoxDriver();
                    break;

                default:
                    break;
                }

                log              = new LoginPage(wd);
                paginaInicial    = new HomePage(wd);
                reportarProblema = new ReportIssuePage(wd);
                mc             = new MetodosComuns(wd);
                evidenciaTeste = new TestEvidence(wd);

                log.GoTo();
                log.Logar(login, password);
                paginaInicial.irParaInserirDetalhesRelatorio();
                reportarProblema.camposObg(summary, description);
                reportarProblema.ClicarEnviarRelatorio();
                mc.Valida("A necessary field  was empty. Please recheck your inputs.");

                evidenciaTeste.Capture(screenShotName);
                mc.Fechar();
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 12
0
        public void Copy()
        {
            //Arrange
            var cop1 = new ObjCopy {
                Codigo = 1, Nome = "", ObjCopys = new List <ObjCopy> {
                    new ObjCopy {
                        Nome = "FelizBerto"
                    }
                }, ObjCopy2 = new ObjCopy {
                    Nome = "Maria"
                }
            };
            var cop2 = new ObjCopy()
            {
                Nome = "Patricia"
            };

            // Act
            MetodosComuns.CopyT1T2(cop1, cop2, false);

            //Assert
            //Assert.True(cop2.Nome.Equals(cop1.Nome));
        }
Exemplo n.º 13
0
 private bool TelefoneValido(string arg)
 {
     return(MetodosComuns.SomenteNumeros(arg).Length > 0);
 }
Exemplo n.º 14
0
 public void ValidaDirecionamentoTela(string assertNumeroProjeto)
 {
     mc = new MetodosComuns(driver);
     mc.Valida(assertNumeroProjeto);
 }
Exemplo n.º 15
0
        public void AcessoGraficoCotacao()
        {
            MetodosComuns oMetodosComuns = new MetodosComuns();

            try
            {
                LoginCorreto();

                espera.Until(ExpectedConditions.ElementToBeClickable(btnAtivoLista));
                btnAtivoLista.Click();

                //Verificando gráfico do ativo em linha
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmDia.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmMes.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnQuinzeDias));
                //btnQuinzeDias.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnSeisMeses));
                btnSeisMeses.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnUmAno));
                //btnUmAno.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmDia.Click();

                //Verificando gráfico do ativo em coluna
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnGraficoColuna));
                btnGraficoColuna.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnQuinzeDias));
                //btnQuinzeDias.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmMes.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnSeisMeses));
                btnSeisMeses.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnUmAno));
                //btnUmAno.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnFecharGrafico));
                btnFecharGrafico.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(ativoRemovido));
                oMetodosComuns.LongPressPosicoesFixas(driver, 950, 760, 200, 760);

                espera.Until(ExpectedConditions.ElementToBeClickable(btnExcluirAtivo));
                btnExcluirAtivo.Click();
            }
            catch
            {
                //Inserindo ativo
                espera.Until(ExpectedConditions.ElementToBeClickable(btnAdicionaAtivo));
                btnAdicionaAtivo.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(btnAdicionaAtivoDaLista));
                btnAdicionaAtivoDaLista.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(btnAtivoLista));
                btnAtivoLista.Click();

                //Verificando gráfico do ativo em linha
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmDia.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmMes.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnQuinzeDias));
                //btnQuinzeDias.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnSeisMeses));
                btnSeisMeses.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnUmAno));
                //btnUmAno.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmDia.Click();

                //Verificando gráfico do ativo em coluna
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnGraficoColuna));
                btnGraficoColuna.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnQuinzeDias));
                //btnQuinzeDias.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmMes.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnSeisMeses));
                btnSeisMeses.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnUmAno));
                //btnUmAno.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnFecharGrafico));
                btnFecharGrafico.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(ativoRemovido));
                oMetodosComuns.LongPressPosicoesFixas(driver, 950, 760, 200, 760);

                espera.Until(ExpectedConditions.ElementToBeClickable(btnExcluirAtivo));
                btnExcluirAtivo.Click();
            }
        }
Exemplo n.º 16
0
        public void AcessoGraficoExpandido(string nomeDoAtivo)
        {
            MetodosComuns oMetodosComuns = new MetodosComuns();

            try
            {
                LoginCorreto();

                espera.Until(ExpectedConditions.ElementToBeClickable(btnAdicionaAtivo));
                //btnAtivoLista.Click();

                var ativoSelecionado = oMetodosComuns.CapturaElementoDaLista(driver, nomeDoAtivo, "br.com.cedrotech.fastmobile.dev:id/quoteSimbol");
                ativoSelecionado.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(btnExpandirGrafico));
                btnExpandirGrafico.Click();

                //Verificando gráfico do ativo em linha
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmDia.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmMes.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnQuinzeDias));
                //btnQuinzeDias.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnSeisMeses));
                btnSeisMeses.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnUmAno));
                //btnUmAno.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmDia.Click();

                //Verificando gráfico do ativo em coluna
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnGraficoColuna));
                btnGraficoColuna.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmMes.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnQuinzeDias));
                //btnQuinzeDias.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnSeisMeses));
                btnSeisMeses.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnUmAno));
                //btnUmAno.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnExpandirGrafico));
                btnExpandirGrafico.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnFecharGrafico));
                btnFecharGrafico.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(ativoRemovido));
                oMetodosComuns.LongPressPosicoesFixas(driver, 950, 760, 200, 760);

                espera.Until(ExpectedConditions.ElementToBeClickable(btnExcluirAtivo));
                btnExcluirAtivo.Click();
            }
            catch
            {
                //Inserindo ativo
                espera.Until(ExpectedConditions.ElementToBeClickable(btnAdicionaAtivo));
                btnAdicionaAtivo.Click();

                oMetodosComuns.AddAtivoNaPlanilhaCotacaoAtual(driver, nomeDoAtivo);

                //espera.Until(ExpectedConditions.ElementToBeClickable(campoPesquisaAtivo));
                //campoPesquisaAtivo.SendKeys(nomeDoAtivo);

                var ativoSelecionado = oMetodosComuns.CapturaElementoDaLista(driver, nomeDoAtivo, "br.com.cedrotech.fastmobile.dev:id/quoteSimbol");
                ativoSelecionado.Click();

                espera.Until(ExpectedConditions.ElementToBeClickable(btnExpandirGrafico));
                btnExpandirGrafico.Click();

                //Verificando gráfico do ativo em linha
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmDia.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmMes.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnQuinzeDias));
                //btnQuinzeDias.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnSeisMeses));
                btnSeisMeses.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnUmAno));
                //btnUmAno.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmDia.Click();

                //Verificando gráfico do ativo em coluna
                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnGraficoColuna));
                btnGraficoColuna.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnUmDia));
                btnUmMes.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnQuinzeDias));
                //btnQuinzeDias.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnSeisMeses));
                btnSeisMeses.Click();

                //Thread.Sleep(3000);
                //espera.Until(ExpectedConditions.ElementToBeClickable(btnUmAno));
                //btnUmAno.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnExpandirGrafico));
                btnExpandirGrafico.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(btnFecharGrafico));
                btnFecharGrafico.Click();

                Thread.Sleep(3000);
                espera.Until(ExpectedConditions.ElementToBeClickable(ativoRemovido));
                oMetodosComuns.LongPressPosicoesFixas(driver, 950, 760, 200, 760);

                espera.Until(ExpectedConditions.ElementToBeClickable(btnExcluirAtivo));
                btnExcluirAtivo.Click();
            }
        }