コード例 #1
0
        public void preencheLoginViaJavaScript()
        {
            wait.ElementToBeClickable(InputLogin);
            IJavaScriptExecutor jse = (IJavaScriptExecutor)DriverFactory.INSTANCE;

            jse.ExecuteScript("arguments[0].value='" + ConfigurationManager.AppSettings["login"].ToString() + "';", InputLogin);
        }
コード例 #2
0
 public void verificaAcessoTelaPlanejamento()
 {
     wait.ElementToBeClickable(TituloPlanejamento);
     Relatorio.test.Info("Menu Planejamento acessado.");
 }
コード例 #3
0
        public void limpaCampoInput(IWebElement elemento, string nomePageObjects)
        {
            wait.ElementToBeClickable(elemento);
            elemento.Clear();

            //Relatorio.test.Pass("O elemento foi limpo: "+ nomePageObjects);
        }//fim void
コード例 #4
0
 public void verificaAcessoTelaRegistroMudanças()
 {
     wait.ElementToBeClickable(TituloRegistroMudanças);
     Relatorio.test.Info("Menu Registro de Mudanças acessado.");
 }
コード例 #5
0
        public void Click(IWebElement element)
        {
            IWebElement e = _waitUntil.ElementToBeClickable(element);

            General.ScrollTo(_driver, e);
            new Actions(_driver).MoveToElement(e).Click().Perform();
        }
コード例 #6
0
 public void verificarAcessoVerTarefas()
 {
     wait.ElementToBeClickable(PaginaVerTarefas);
     Relatorio.test.Info("Página Ver Tarefas acessada.");
 }
コード例 #7
0
 public void verificaAcessoTelaMinhaConta()
 {
     wait.ElementToBeClickable(TituloMinhaConta);
     Relatorio.test.Info("Página Minha Conta acessada.");
 }
コード例 #8
0
 public void verificaAcessoTelaHome()
 {
     wait.ElementToBeClickable(BotaoNaoAtribuidos);
     Relatorio.test.Info("Página Home acessada.");
 }
 public void verificaAcessoTelaGerenciar()
 {
     wait.ElementToBeClickable(By.XPath("//div[@id='sidebar']/ul/li[7]/a/i"));
     Relatorio.test.Info("Menu Gerenciar acessado.");
 }