def close_app(self, app): self.wait_for_card_ready(app) Wait(self.marionette).until( expected.element_present(*self._app_card_locator(app))) self.marionette.find_element(*self._close_button_locator(app)).tap() Wait(self.marionette).until( expected.element_not_present(*self._app_card_locator(app)))
def login(self, email, password): # This only supports logging in with a known user and no existing session self.type_email(email) self.tap_continue() self.type_password(password) self.tap_returning() self.marionette.switch_to_frame() Wait(self.marionette).until( expected.element_not_present(*self._persona_frame_locator)) self.apps.switch_to_displayed_app()
def __init__(self, marionette): Base.__init__(self, marionette) Wait(self.marionette).until( expected.element_not_present(*self._search_results_loading_locator))