Example #1
0
        /********* Link ************/

        public void clicarLink(String link)
        {
            DriverFactory.getDriver().FindElement(By.LinkText(link)).Click();
        }
Example #2
0
        /********* Textos ************/

        public String obterTexto(By by)
        {
            return(DriverFactory.getDriver().FindElement(by).Text);
        }
Example #3
0
        /********* Botao ************/

        public void clicarBotao(String id)
        {
            DriverFactory.getDriver().FindElement(By.Id(id)).Click();
        }
Example #4
0
 public String obterValueElemento(String id)
 {
     return(DriverFactory.getDriver().FindElement(By.Id(id)).GetAttribute("value"));
 }
Example #5
0
        /********* Radio e Check ************/

        public void clicarRadio(By by)
        {
            DriverFactory.getDriver().FindElement(by).Click();
        }
Example #6
0
 public Boolean isCheckMarcado(String id)
 {
     return(DriverFactory.getDriver().FindElement(By.Id(id)).Selected);
 }
Example #7
0
        /********* TextField e TextArea ************/

        public void escrever(By by, String texto)
        {
            DriverFactory.getDriver().FindElement(by).Clear();
            DriverFactory.getDriver().FindElement(by).SendKeys(texto);
        }
Example #8
0
 public static void Clicar(By by)
 {
     DriverFactory.getDriver().FindElement(by).Click();
 }
Example #9
0
 public static String ObterTextoEscritoPorAtributo(By by)
 {
     return(DriverFactory.getDriver().FindElement(by).GetAttribute("value"));
 }
Example #10
0
 public static String ObterTextoEscritoPorTexto(By by)
 {
     return(DriverFactory.getDriver().FindElement(by).Text);
 }
Example #11
0
 public static void EscreverTexto(By by, String texto)
 {
     DriverFactory.getDriver().FindElement(by).SendKeys(texto);
 }