mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
bitbake: toaster/tests: Setup delay after driver action self.get(url)
Recurring test failures result from insufficient delays in driver actions. (Bitbake rev: b0de2a61d14fbf30e338751b285b3bab80192275) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0d93308425
commit
49ccf2f5e0
@@ -182,6 +182,13 @@ class SeleniumTestCaseBase(unittest.TestCase):
|
||||
abs_url = '%s%s' % (self.live_server_url, url)
|
||||
self.driver.get(abs_url)
|
||||
|
||||
try: # Ensure page is loaded before proceeding
|
||||
self.wait_until_visible("#global-nav", poll=3)
|
||||
except NoSuchElementException:
|
||||
self.driver.implicitly_wait(3)
|
||||
except TimeoutException:
|
||||
self.driver.implicitly_wait(3)
|
||||
|
||||
def find(self, selector):
|
||||
""" Find single element by CSS selector """
|
||||
return self.driver.find_element(By.CSS_SELECTOR, selector)
|
||||
|
||||
Reference in New Issue
Block a user