summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-12-29 16:10:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-01 23:13:50 +0000
commit6a67f24773111bc48272cd5ac51b7c9e9bab7b27 (patch)
tree162bc6f6feecd146a31866e9b013fb26d6e392c1 /bitbake/lib/toaster/tests/browser/selenium_helpers_base.py
parent4b7e54846392410cfed9c0a56b895f041f55d9df (diff)
downloadpoky-6a67f24773111bc48272cd5ac51b7c9e9bab7b27.tar.gz
bitbake: toaster/tests: bug-fix An element matching "#projectstable" should be visible
(Bitbake rev: 1edb97f741a48481b1b9f26c5cb31acd9059f07f) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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):