InterruptedException: sleep interrupted in Selenium using Saucelabs -
i encounter exception during batch run.
i've catch interruptedexception call thread.currentthread.interrupt().
how can rid of sleep interrupted?
i encountered randomly in webdriverwait. don't know why 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; }
Comments
Post a Comment