def return_to_prev_menu(self, parent_view, exit_view): GaiaHeader(self.marionette, exit_view.find_element(*self._header_locator)).go_back() Wait(self.marionette).until( lambda m: 'current' not in exit_view.get_attribute('class')) Wait(self.marionette).until(lambda m: parent_view.rect['x'] == 0) Wait(self.marionette).until( lambda m: 'current' in parent_view.get_attribute('class'))
def return_to_prev_menu(self, parent_view, exit_view, html_header_locator=None): if html_header_locator: # Used by test_settings_PS_RTL.py HTMLHeader(self.marionette, html_header_locator).go_back() else: GaiaHeader(self.marionette, self._header_locator).go_back() Wait(self.marionette).until( lambda m: 'current' not in exit_view.get_attribute('class')) Wait(self.marionette).until(lambda m: parent_view.rect['x'] == 0) Wait(self.marionette).until( lambda m: 'current' in parent_view.get_attribute('class'))
def tap_back_button(self): GaiaHeader(self.marionette, self._header_locator).go_back(exit_app=True, app=self)
def go_back(self): GaiaHeader(self.marionette, self._header_locator).go_back()
def tap_exit(self): GaiaHeader(self.marionette, self._header_locator).go_back(app=self, exit_app=True, statusbar=True)
def tap_user_dict_exit(self): GaiaHeader(self.marionette, self._user_dict_header_locator).go_back()
def tap_exit(self): GaiaHeader(self.marionette, self._header_locator).go_back_and_exit(app=self)
def tap_back_button(self): GaiaHeader(self.marionette, self._test_panel_header_locator).go_back()
def close(self): GaiaHeader(self.marionette, self._header_locator).go_back() from gaiatest.apps.messages.regions.message_thread import MessageThread return MessageThread(self.marionette)
def go_back(self): GaiaHeader(self.marionette, self._header_locator).go_back() from gaiatest.apps.messages.regions.options import DraftOptions return DraftOptions(self.marionette)
def tap_back(self): GaiaHeader(self.marionette, self._details_header_locator).go_back()
def go_back(self): GaiaHeader(self.marionette, self._ice_settings_header_locator).go_back() from gaiatest.apps.contacts.regions.settings_form import SettingsForm return SettingsForm(self.marionette)
def exit_about(self): GaiaHeader(self.marionette, self._about_back_header_locator).go_back() Wait(self.marionette).until( expected.element_displayed(*self._location_accuracy_menu_locator))