Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public void waitElement(WebElement element, TimeOut timeOut) {
  2.  
  3. try {
  4.  
  5. WebDriverWait wait = new WebDriverWait(driver, timeOut.value);
  6.  
  7. wait.until(ExpectedConditions.invisibilityOf(element));
  8.  
  9. } catch (Exception ex) {
  10.  
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement