Пример #1
0
        public void TestarPesquisaNoGoogle(
            Browser browser, string texto)
        {
            var browserContext = new BrowserContext(browser, _configuration);



            using (var tela1 = new GooglePage(browserContext))
                using (var tela2 = new PesquisaGoogle(browserContext))
                {
                    tela1.CarregarPagina();
                    tela1.PreencheCampoDeTexto(texto);
                    tela1.SubmiterAPesquisa();

                    Assert.True(tela2.AcharBotao());
                }
        }
 public void DadoQueEuEstouNaPaginaDoGoogle()
 {
     //Abrindo a página principal do Google
     _googlePage.CarregarPagina();
     _pesquisaGoogle.TakeScreenshot(@"c:\Screenshot\EntaoOSistemaExibeOResultadoDaPesquisa\", $"{DateTime.Now.ToString("dd_MM_yyyy_HH_mm_ss")}.png");
 }
Пример #3
0
 public void DadoQueEuEstouNaPaginaDoGoogle()
 {
     _googlePage.CarregarPagina();
 }