Problem with wait screen in selenium webdriver

0

Hi, I have a generated method to replace the waitsleep and that this is more efficient, I have it as follows:

public void caso50() throws  IOException {
        ingresoCredenciales("50", Constantes.equipoMotox4, "8.0");
        RemoteWebElement ele = (RemoteWebElement)
 driver.findElement(By.
xpath(Constantes.txtTipoDeDocumento));
        System.out.println(ele.toString());
        compararTexto(ele.toString(), ResultadosEsperados.RTipoDocumentos);
        RemoteWebElement element = (RemoteWebElement) (new WebDriverWait(driver, 10)) wait.until(ExpectedConditions.visibilityOf(element));
        cerrarSession();

    }

It does not work for me, I would like to know how I can make selenium wait until some element of the application becomes visible.

    
asked by Christian Andres Hyuden 04.09.2018 в 16:19
source

0 answers