Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
        public IWebElement GetIWebElement(TipoElementoEnum TipoElemento, String strValue)
        {
            var htmlElement = TipoWebElemento.ObterTipoElemento(TipoElemento, strValue);

            return(Utilitarios.VerificarObjetoValido(Driver.FindElement(htmlElement)) ? Driver.FindElement(htmlElement) : null);
        }