1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

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>
This commit is contained in:
Alassane Yattara
2023-12-29 16:10:21 +01:00
committed by Richard Purdie
parent 4b7e548463
commit 6a67f24773
2 changed files with 46 additions and 43 deletions
@@ -206,6 +206,8 @@ class SeleniumTestCaseBase(unittest.TestCase):
is_present = lambda driver: self.find(selector)
msg = 'An element matching "%s" should be on the page' % selector
element = Wait(self.driver, poll=poll).until(is_present, msg)
if poll > 2:
time.sleep(poll) # element need more delay to be present
return element
def wait_until_visible(self, selector, poll=1):