Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created August 26, 2020 16:52
Show Gist options
  • Save seleniumgists/527164807bed87c922c044f21077d894 to your computer and use it in GitHub Desktop.
Save seleniumgists/527164807bed87c922c044f21077d894 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
//To wait for element visible
final WebDriverWait wait;
wait = new WebDriverWait(driver, Duration.ofSeconds(15), Duration.ofMillis(100));
Thread.sleep(15000);
final WebElement noGracias;
noGracias = wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector(("img[src='<https://images.clarin.com/collections/static/logo_clarin.svg>']"))));
noGracias.click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment