I always encounter this exception during my batch run.
I've already catch the InterruptedException then call the Thread.currentThread.interrupt().
How can I get rid of the sleep interrupted?
I encountered randomly in WebDriverWait. I don't know why it happens.
public boolean isElementVisible(WebElement webElement) {
boolean isVisible = false;
try {
log.info(CHECK_IF_ELEMENT_IS_VISIBLE);
WebDriverWait wait = new WebDriverWait(driver,
CommonConstants.DEFAULT_TIMEOUT_IMPLICITWAIT);
Wait.until(ExpectedConditions.visibilityOf(webElement));
isVisible = true;
} catch (Exception e) {
log.error(ELEMENT_NOT_FOUND, e);
}
return isVisible;
}