public void WaintElementToBeClickable(TipoElementoEnum TipoElemento, String strValue) { var htmlElement = TipoWebElemento.ObterTipoElemento(TipoElemento, strValue); var wait = new WebDriverWait(Driver, TimeSpan.FromMilliseconds(Parametros.TIME_OUT)); wait.Until(ExpectedConditions.ElementToBeClickable(htmlElement)); }
public void WaintForObject(TipoElementoEnum TipoElemento, String strValue, long timeout) { var wait = new WebDriverWait(Driver, TimeSpan.FromMilliseconds(timeout)); var htmlElement = TipoWebElemento.ObterTipoElemento(TipoElemento, strValue); wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(htmlElement)); }
public void WaintPresenceOfAllElementsLocatedForObject(TipoElementoEnum TipoElemento, String strValue) { var htmlElement = TipoWebElemento.ObterTipoElemento(TipoElemento, strValue); var wait = new WebDriverWait(Driver, TimeSpan.FromMilliseconds(Parametros.TIME_OUT)); wait.Until(ExpectedConditions.PresenceOfAllElementsLocatedBy(htmlElement)); }
public IWebElement GetIWebElement(TipoElementoEnum TipoElemento, String strValue) { var htmlElement = TipoWebElemento.ObterTipoElemento(TipoElemento, strValue); return(Utilitarios.VerificarObjetoValido(Driver.FindElement(htmlElement)) ? Driver.FindElement(htmlElement) : null); }