From a5617121f5872cee8c7ba5e6947e7f7be22fae29 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Wed, 11 Sep 2019 14:49:25 +0200 Subject: [PATCH] [weboob.browser.selenium] Implemented wait_xpath_invisible To wait for an element to disappear. --- weboob/browser/selenium.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weboob/browser/selenium.py b/weboob/browser/selenium.py index b9c5d08d2b..e5a2b1aaa0 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) -- GitLab