зеркало из https://github.com/mozilla/eideticker.git
Bug 999189 - Improve wait for Marketplace to be loaded. r=wlachance
This commit is contained in:
Родитель
2030147819
Коммит
20fe7acb82
|
@ -52,9 +52,9 @@ class B2GMarketplaceTestMixin(object):
|
||||||
expected.element_present(
|
expected.element_present(
|
||||||
By.CSS_SELECTOR, 'iframe[src*="marketplace"]'))
|
By.CSS_SELECTOR, 'iframe[src*="marketplace"]'))
|
||||||
self.device.marionette.switch_to_frame(iframe)
|
self.device.marionette.switch_to_frame(iframe)
|
||||||
Wait(self.device.marionette).until(expected.element_displayed(
|
Wait(self.device.marionette).until(
|
||||||
Wait(self.device.marionette).until(expected.element_present(
|
lambda m: 'loaded' in m.find_element(
|
||||||
By.ID, 'site-header'))))
|
By.TAG_NAME, 'body').get_attribute('class').split())
|
||||||
|
|
||||||
def prepare_app(self):
|
def prepare_app(self):
|
||||||
self.launch_app()
|
self.launch_app()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче