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.py2
1 files changed, 2 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 13806624f3..562fedec8c 100644
--- a/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
+++ b/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
@@ -206,6 +206,8 @@ class SeleniumTestCaseBase(unittest.TestCase):
206 is_present = lambda driver: self.find(selector) 206 is_present = lambda driver: self.find(selector)
207 msg = 'An element matching "%s" should be on the page' % selector 207 msg = 'An element matching "%s" should be on the page' % selector
208 element = Wait(self.driver, poll=poll).until(is_present, msg) 208 element = Wait(self.driver, poll=poll).until(is_present, msg)
209 if poll > 2:
210 time.sleep(poll) # element need more delay to be present
209 return element 211 return element
210 212
211 def wait_until_visible(self, selector, poll=1): 213 def wait_until_visible(self, selector, poll=1):