Return True on success

This commit is contained in:
Michael Mintz 2016-05-26 19:45:44 -04:00
parent bf4f521f82
commit 9586a4fb1e
1 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@ def wait_for_element_absent(driver, selector, by=By.CSS_SELECTOR,
break
time.sleep(0.1)
except Exception:
return
return True
raise Exception("Element [%s] was still present after %s seconds!" %
(selector, timeout))
@ -296,9 +296,9 @@ def wait_for_element_not_visible(driver, selector, by=By.CSS_SELECTOR,
break
time.sleep(0.1)
else:
return
return True
except Exception:
return
return True
raise Exception(
"Element [%s] was still visible after %s seconds!" % (
selector, timeout))