Bug 1005594 - Temporarily resort to a 30 second timeout to say marketplace is done loading;r=me

This commit is contained in:
William Lachance 2014-05-05 14:58:40 -04:00
Родитель ba2b66436a
Коммит 19cb08f4be
1 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -9,7 +9,7 @@ from marionette.errors import ElementNotVisibleException
from marionette.wait import Wait
from marionette.by import By
from gaiatest.gaia_test import GaiaApps
import time
class B2GContactsTestMixin(object):
@ -62,9 +62,12 @@ class B2GMarketplaceTestMixin(object):
expected.element_present(
By.CSS_SELECTOR, 'iframe[src*="marketplace"]'))
self.device.marionette.switch_to_frame(iframe)
Wait(self.device.marionette).until(
lambda m: 'loaded' in m.find_element(
By.TAG_NAME, 'body').get_attribute('class').split())
# FIXME: The below *should* work, but doesn't... just doing an
# arbitrary
#Wait(self.device.marionette).until(
# lambda m: 'loaded' in m.find_element(
# By.TAG_NAME, 'body').get_attribute('class').split()
time.sleep(30)
def prepare_app(self):
self.launch_app()