コード例 #1
0
ファイル: app.py プロジェクト: Draggha/gaia
    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'))
コード例 #2
0
ファイル: privacy_controls.py プロジェクト: inni1115/gaia
    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'))
コード例 #3
0
 def tap_back_button(self):
     GaiaHeader(self.marionette,
                self._header_locator).go_back(exit_app=True, app=self)
コード例 #4
0
ファイル: keyboard.py プロジェクト: kuoe0/gaia-dev
 def go_back(self):
     GaiaHeader(self.marionette, self._header_locator).go_back()
コード例 #5
0
ファイル: keyboard.py プロジェクト: kuoe0/gaia-dev
 def tap_exit(self):
     GaiaHeader(self.marionette,
                self._header_locator).go_back(app=self,
                                              exit_app=True,
                                              statusbar=True)
コード例 #6
0
ファイル: keyboard.py プロジェクト: kuoe0/gaia-dev
 def tap_user_dict_exit(self):
     GaiaHeader(self.marionette, self._user_dict_header_locator).go_back()
コード例 #7
0
ファイル: app.py プロジェクト: inni1115/gaia
 def tap_exit(self):
     GaiaHeader(self.marionette,
                self._header_locator).go_back_and_exit(app=self)
コード例 #8
0
ファイル: app.py プロジェクト: kuoe0/gaia-dev
 def tap_back_button(self):
     GaiaHeader(self.marionette, self._test_panel_header_locator).go_back()
コード例 #9
0
ファイル: report.py プロジェクト: kuoe0/gaia-dev
 def close(self):
     GaiaHeader(self.marionette, self._header_locator).go_back()
     from gaiatest.apps.messages.regions.message_thread import MessageThread
     return MessageThread(self.marionette)
コード例 #10
0
ファイル: new_message.py プロジェクト: inni1115/gaia
 def go_back(self):
     GaiaHeader(self.marionette, self._header_locator).go_back()
     from gaiatest.apps.messages.regions.options import DraftOptions
     return DraftOptions(self.marionette)
コード例 #11
0
 def tap_back(self):
     GaiaHeader(self.marionette, self._details_header_locator).go_back()
コード例 #12
0
ファイル: set_ice_contacts.py プロジェクト: kuoe0/gaia-dev
 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)
コード例 #13
0
ファイル: privacy_controls.py プロジェクト: inni1115/gaia
 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))