/********* Link ************/ public void clicarLink(String link) { DriverFactory.getDriver().FindElement(By.LinkText(link)).Click(); }
/********* Textos ************/ public String obterTexto(By by) { return(DriverFactory.getDriver().FindElement(by).Text); }
/********* Botao ************/ public void clicarBotao(String id) { DriverFactory.getDriver().FindElement(By.Id(id)).Click(); }
public String obterValueElemento(String id) { return(DriverFactory.getDriver().FindElement(By.Id(id)).GetAttribute("value")); }
/********* Radio e Check ************/ public void clicarRadio(By by) { DriverFactory.getDriver().FindElement(by).Click(); }
public Boolean isCheckMarcado(String id) { return(DriverFactory.getDriver().FindElement(By.Id(id)).Selected); }
/********* TextField e TextArea ************/ public void escrever(By by, String texto) { DriverFactory.getDriver().FindElement(by).Clear(); DriverFactory.getDriver().FindElement(by).SendKeys(texto); }
public static void Clicar(By by) { DriverFactory.getDriver().FindElement(by).Click(); }
public static String ObterTextoEscritoPorAtributo(By by) { return(DriverFactory.getDriver().FindElement(by).GetAttribute("value")); }
public static String ObterTextoEscritoPorTexto(By by) { return(DriverFactory.getDriver().FindElement(by).Text); }
public static void EscreverTexto(By by, String texto) { DriverFactory.getDriver().FindElement(by).SendKeys(texto); }