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 FazerPesquisaNoGoogleSteps() : base() { _googlePage = new GooglePage(_browserContext); _pesquisaGoogle = new PesquisaGoogle(_browserContext); }