Created
July 5, 2018 18:57
-
-
Save ValchanOficial/8f74e66a351f51d7131d1fb88870a897 to your computer and use it in GitHub Desktop.
Hidden Item and Wait.until
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public WebElement metodo() { | |
WebElement element = driver.findElement(By.className("ID")); | |
String js = "arguments[0].style.height='auto'; arguments[0].style.visibility='visible';"; | |
((JavascriptExecutor) driver).executeScript(js, element); | |
return element; | |
} | |
public WebElement metodo() { | |
WebDriverWait wait = new WebDriverWait(driver,10); | |
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("ID"))); | |
return element; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment