def __init__(self, marionette): Clock.__init__(self, marionette) view = self.marionette.find_element(*self._alarm_view_locator) Wait(self.marionette).until( lambda m: view.location['x'] == 0 and view.is_displayed()) # Bug 1032852 This is to bust intermittents caused by this bug that causes keyboard not to appear upon tap time.sleep(1.5)
def __init__(self, marionette): Clock.__init__(self, marionette) view = self.marionette.find_element(*self._alarm_view_locator) Wait(self.marionette).until(lambda m: view.location['x'] == 0 and view.is_displayed()) # Bug 1032852 This is to bust intermittents caused by this bug that causes keyboard not to appear upon tap time.sleep(1.5)
def __init__(self, marionette): Clock.__init__(self, marionette) view = self.marionette.find_element(*self._alarm_view_locator) self.wait_for_condition( lambda m: view.location['x'] == 0 and view.is_displayed())
def __init__(self, marionette): Clock.__init__(self, marionette) view = self.marionette.find_element(*self._alarm_view_locator) self.wait_for_condition(lambda m: view.location['x'] == 0 and view.is_displayed())
def __init__(self, marionette): Clock.__init__(self, marionette) view = self.marionette.find_element(*self._alarm_view_locator) self.wait_for_condition(lambda m: view.location["x"] == 0)