summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/selenium_helpers_base.py')
-rw-r--r--bitbake/lib/toaster/tests/browser/selenium_helpers_base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py b/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
index 5a4a4ef8b4..b664166055 100644
--- a/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
+++ b/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
@@ -227,6 +227,13 @@ class SeleniumTestCaseBase(unittest.TestCase):
227 Wait(self.driver, poll=poll).until(is_visible, msg) 227 Wait(self.driver, poll=poll).until(is_visible, msg)
228 return self.find(selector) 228 return self.find(selector)
229 229
230 def wait_until_not_visible(self, selector, timeout=Wait._TIMEOUT):
231 """ Wait until element matching CSS selector is not visible on the page """
232 is_visible = lambda driver: self.find(selector).is_displayed()
233 msg = 'An element matching "%s" should be visible' % selector
234 Wait(self.driver, timeout=timeout).until_not(is_visible, msg)
235 return self.find(selector)
236
230 def wait_until_clickable(self, selector, poll=1): 237 def wait_until_clickable(self, selector, poll=1):
231 """ Wait until element matching CSS selector is visible on the page """ 238 """ Wait until element matching CSS selector is visible on the page """
232 sel = selector 239 sel = selector