diff --git a/weboob/browser/selenium.py b/weboob/browser/selenium.py index b9c5d08d2b98d11b2577296200a425d47f97702a..e5a2b1aaa00e1bc57f0442a3faeec153067be8aa 100644 --- a/weboob/browser/selenium.py +++ b/weboob/browser/selenium.py @@ -601,6 +601,9 @@ def wait_xpath(self, xpath, timeout=None): def wait_xpath_visible(self, xpath, timeout=None): self.wait_until(EC.visibility_of_element_located(xpath_locator(xpath)), timeout) + def wait_xpath_invisible(self, xpath, timeout=None): + self.wait_until(EC.invisibility_of_element_located(xpath_locator(xpath)), timeout) + def wait_xpath_clickable(self, xpath, timeout=None): self.wait_until(EC.element_to_be_clickable(xpath_locator(xpath)), timeout)