Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ValchanOficial/8f74e66a351f51d7131d1fb88870a897 to your computer and use it in GitHub Desktop.
Save ValchanOficial/8f74e66a351f51d7131d1fb88870a897 to your computer and use it in GitHub Desktop.
Hidden Item and Wait.until
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