Exemple #1
0
    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'))
Exemple #2
0
    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'))
Exemple #3
0
 def tap_back_button(self):
     GaiaHeader(self.marionette,
                self._header_locator).go_back(exit_app=True, app=self)
Exemple #4
0
 def go_back(self):
     GaiaHeader(self.marionette, self._header_locator).go_back()
Exemple #5
0
 def tap_exit(self):
     GaiaHeader(self.marionette,
                self._header_locator).go_back(app=self,
                                              exit_app=True,
                                              statusbar=True)
Exemple #6
0
 def tap_user_dict_exit(self):
     GaiaHeader(self.marionette, self._user_dict_header_locator).go_back()
Exemple #7
0
 def tap_exit(self):
     GaiaHeader(self.marionette,
                self._header_locator).go_back_and_exit(app=self)
Exemple #8
0
 def tap_back_button(self):
     GaiaHeader(self.marionette, self._test_panel_header_locator).go_back()
Exemple #9
0
 def close(self):
     GaiaHeader(self.marionette, self._header_locator).go_back()
     from gaiatest.apps.messages.regions.message_thread import MessageThread
     return MessageThread(self.marionette)
Exemple #10
0
 def go_back(self):
     GaiaHeader(self.marionette, self._header_locator).go_back()
     from gaiatest.apps.messages.regions.options import DraftOptions
     return DraftOptions(self.marionette)
Exemple #11
0
 def tap_back(self):
     GaiaHeader(self.marionette, self._details_header_locator).go_back()
Exemple #12
0
 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)
Exemple #13
0
 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))