コード例 #1
0
ファイル: activities.py プロジェクト: DouglasSherk/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._actions_menu_locator))))
     # TODO Difficult intermittent bug 977052
     time.sleep(1)
コード例 #2
0
ファイル: app.py プロジェクト: Anshdesire/gaia
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         expected.element_displayed(
             Wait(self.marionette).until(expected.element_present(*self._visible_clock_locator))
         )
     )
コード例 #3
0
ファイル: new_message.py プロジェクト: DouglasSherk/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.wait_to_be_displayed()
     self.apps.switch_to_displayed_app()
     element = Wait(self.marionette).until(
         expected.element_present(*self._panel_conversationview_locator))
     Wait(self.marionette).until(lambda m: element.rect['x'] == 0 and element.is_displayed())
コード例 #4
0
ファイル: google.py プロジェクト: AaskaShah/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.switch_to_frame()
     # wait for the page to load
     email = Wait(self.marionette).until(
         expected.element_present(*self._email_locator))
     Wait(self.marionette).until(lambda m: email.get_attribute('value') != '')
コード例 #5
0
ファイル: app.py プロジェクト: AaskaShah/gaia
 def launch(self, empty=False):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._progress_bar_locator)
     if empty:
         self.wait_for_overlay_to_show()
     else:
         self.wait_for_thumbnail_view_to_load()
コード例 #6
0
 def launch(self, expect_success=True):
     Base.launch(self, launch_timeout=120000)
     self.wait_for_element_not_displayed(*self._loading_fragment_locator)
     if expect_success:
         self.switch_to_marketplace_frame()
         from marketplacetests.marketplace.pages.home import Home
         return Home(self.marionette)
コード例 #7
0
ファイル: tile_view.py プロジェクト: Archaeopteryx/gaia
    def __init__(self, marionette):
        Base.__init__(self, marionette)

        # there are two type of tiles - main and sub.  There should be at least one main tile
        self.marionette.switch_to_frame(self.marionette.find_element(*self._active_view_locator))
        Wait(self.marionette).until(expected.element_displayed(*self._tile_group_locator))
        self.apps.switch_to_displayed_app()
コード例 #8
0
ファイル: list_view.py プロジェクト: alison-shiue/MTBF-Driver
 def __init__(self, marionette, bolScrollingCheck=True):
     Base.__init__(self, marionette)
     if bolScrollingCheck:
         Wait(self.marionette).until(
             lambda m: self.marionette.find_element(*self._view_locator).get_attribute('class') == 'scrolling')
     Wait(self.marionette).until(
         lambda m: self.marionette.find_element(*self._view_locator).get_attribute('class') != 'scrolling')
コード例 #9
0
ファイル: app.py プロジェクト: Thatoo/gaia
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         expected.element_displayed(
             Wait(self.marionette).until(expected.element_present(*self._settings_button_locator))
         )
     )
コード例 #10
0
ファイル: passcode_pad.py プロジェクト: 4gh/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     lockscreen_passcode_pad = self.marionette.find_element(*self._lockscreen_passcode_pad_locator)
     emergency_button = self.marionette.find_element(*self._emergency_button_locator)
     # wait button * 4 rows === the pad's height
     self.wait_for_condition(lambda m: lockscreen_passcode_pad.size['height'] ==
           (4 * emergency_button.size['height']))
コード例 #11
0
ファイル: time_picker.py プロジェクト: guhelski/gaia
    def __init__(self, marionette):
        Base.__init__(self, marionette)
        self.marionette.switch_to_frame()
        Wait(self.marionette).until(expected.element_displayed(*self._hour_picker_locator))

        # TODO: wait for the time picker to fade in Bug 1038186
        time.sleep(2)
コード例 #12
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(
         expected.element_displayed(
             Wait(self.marionette).until(expected.element_present(*self._current_image_locator))
         )
     )
コード例 #13
0
ファイル: app.py プロジェクト: AutomatedTester/gaia
 def launch(self):
     Base.launch(self)
     Wait(self.marionette, ignored_exceptions=JavascriptException).until(
         lambda m: m.execute_script('return window.wrappedJSObject.Contacts.asyncScriptsLoaded;') is True)
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._settings_button_locator))))
コード例 #14
0
ファイル: app.py プロジェクト: 6a68/gaia
 def launch(self):
     Base.launch(self)
     # empty message is only displayed after first MonthsDay#render,
     # so we are sure app is "ready" after that
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._event_list_empty_locator))))
コード例 #15
0
ファイル: crop_view.py プロジェクト: AutomatedTester/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._crop_view_locator))))
     done = self.marionette.find_element(*self._crop_done_button_locator)
     Wait(self.marionette).until(expected.element_enabled(done))
コード例 #16
0
ファイル: app.py プロジェクト: andreastt/gaia
    def launch(self):
        Base.launch(self)
        Wait(self.marionette).until(
            expected.element_present(*self._app_loaded_locator))

        # Airplane mode is the latest item to be ready
        self.wait_for_airplane_mode_ready()
コード例 #17
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._contact_import_picker_frame_locator))))
     select_contacts = self.marionette.find_element(*self._contact_import_picker_frame_locator)
     self.marionette.switch_to_frame(select_contacts)
コード例 #18
0
ファイル: time_picker.py プロジェクト: jeremiahlee/gaia
    def __init__(self, marionette):
        Base.__init__(self, marionette)
        self.marionette.switch_to_frame()
        self.wait_for_element_displayed(*self._current_element(*self._hour_picker_locator))

        # TODO: wait for the time piker to fade in Bug 1038186
        time.sleep(2)
コード例 #19
0
ファイル: fxaccounts.py プロジェクト: Archaeopteryx/gaia
    def __init__(self, marionette):
        Base.__init__(self, marionette)

        self._switch_to_fxa_iframe()
        input_field = Wait(self.marionette, timeout=60).until(
            expected.element_present(*self._email_page_locator))
        Wait(self.marionette).until(expected.element_displayed(input_field))
        Wait(self.marionette).until(lambda m: input_field.rect['x'] == 0)
コード例 #20
0
ファイル: browsing_privacy.py プロジェクト: stasm/gaia
    def __init__(self, marionette):
        Base.__init__(self, marionette)

        Wait(self.marionette).until(
            expected.element_displayed(
                Wait(self.marionette).until(expected.element_present(*self._clear_browsing_history_locator))
            )
        )
コード例 #21
0
ファイル: app.py プロジェクト: TheHollidayInn/gaia
    def launch(self):
        Base.launch(self)
        Wait(self.marionette).until(
            expected.element_present(*self._app_loaded_locator))

        # this is located at the end of the page.  If this is shown, everything is rendered.
        Wait(self.marionette).until(
            expected.element_present(*self._bluetooth_menu_item_locator))
コード例 #22
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(lambda m: self.apps.displayed_app.src == self._src)
     self.apps.switch_to_displayed_app()
     loading = self.marionette.find_element(*self._collection_loading_locator)
     Wait(self.marionette).until(expected.element_displayed(loading))
     # See Bug 1162112, Marionette Wait() polling without interval might be interfering network load
     Wait(self.marionette, timeout=30, interval=5).until(expected.element_not_displayed(loading))
コード例 #23
0
ファイル: app.py プロジェクト: EverythingMe/gaia
 def launch(self):
     Base.launch(self)
     # _currentPanel is set after all handlers are set
     self.wait_for_condition(
         lambda m: m.execute_script(
             "return window.wrappedJSObject.Settings && window.wrappedJSObject.Settings._currentPanel === '#root'"
         )
     )
コード例 #24
0
ファイル: app.py プロジェクト: Cwiiis/gaia
    def __init__(self, marionette):
        Base.__init__(self, marionette)
        self.wait_to_be_displayed()
        self.apps.switch_to_displayed_app()

        if self.is_element_present(*self._page_locator):
            Wait(marionette).until(lambda m: self.marionette.find_element(*self._page_locator).
                                   get_attribute('data-ready') == 'true')
コード例 #25
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.marionette.switch_to_frame()
     self.wait_for_element_present(*self._ff_accounts_frame_locator)
     self.frame = self.marionette.find_element(*self._ff_accounts_frame_locator)
     self.marionette.switch_to_frame(self.frame)
     self.wait_for_element_not_present(*self._body_loading_locator)
     self.wait_for_element_displayed(*self._firefox_logo_locator)
コード例 #26
0
ファイル: view_image.py プロジェクト: Archaeopteryx/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     from gaiatest.apps.gallery.app import Gallery
     Gallery(self.marionette).wait_to_be_displayed()
     self.apps.switch_to_displayed_app()
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._image_locator))))
コード例 #27
0
ファイル: view_image.py プロジェクト: AutomatedTester/gaia
    def __init__(self, marionette):
        Base.__init__(self, marionette)
        Wait(self.marionette).until(lambda m: self.apps.displayed_app.name == 'Gallery')
        self.apps.switch_to_displayed_app()

        Wait(self.marionette).until(expected.element_displayed(
            Wait(self.marionette).until(expected.element_present(
                *self._image_locator))))
コード例 #28
0
ファイル: activities.py プロジェクト: axraf/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.marionette.switch_to_frame()
     view = self.marionette.find_element(*self._actions_menu_locator)
     if 'contextmenu' in view.get_attribute('class'):
         # final position is below the status bar
         self.wait_for_condition(lambda m: view.location['y'] == 20)
     else:
         self.wait_for_condition(lambda m: view.location['y'] == 0)
コード例 #29
0
ファイル: app.py プロジェクト: Archaeopteryx/gaia
    def launch(self):
        Base.launch(self)
        Wait(self.marionette).until(expected.element_displayed(
            Wait(self.marionette).until(expected.element_present(
                *self._settings_button_locator))))

        # Workaround for bug 1201211
        import time
        time.sleep(1)
コード例 #30
0
ファイル: merge.py プロジェクト: nullaus/gaia
    def __init__(self, marionette):
        Base.__init__(self, marionette)
        marionette.switch_to_frame()

        merge_iframe = Wait(marionette).until(expected.element_present(*self._iframe_locator))
        Wait(marionette).until(expected.element_displayed(merge_iframe))
        marionette.switch_to_frame(merge_iframe)

        body = marionette.find_element(*self._body_locator)
        Wait(marionette).until(lambda m: body.rect["y"] == 0)
コード例 #31
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     title = self.marionette.find_element(*self._welcome_title_locator)
     Wait(self.marionette).until(lambda m: title.location['x'] == 0)
コード例 #32
0
ファイル: app.py プロジェクト: zhannett/gaia
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         expected.element_present(*self._main_frame_locator))
コード例 #33
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.wait_for_condition(lambda m: m.find_element(*self._contact_name_title_locator).location['x'] == 0)
コード例 #34
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     page = self.marionette.find_element(*self._page_locator)
     Wait(self.marionette).until(
         lambda m: page.rect['x'] == 0 and page.is_displayed())
コード例 #35
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     element = self.marionette.find_element(*self._song_number_locator)
     Wait(self.marionette).until(lambda m: element.location['x'] == 0)
コード例 #36
0
ファイル: settings_form.py プロジェクト: orivier/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     view = self.marionette.find_element(*self._settings_view_locator)
     Wait(self.marionette).until(lambda m: view.location['y'] == 0)
コード例 #37
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.wait_for_add_edit_contact_to_load()
コード例 #38
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._loading_fragment_locator)
コード例 #39
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.marionette.switch_to_frame()
     self.wait_for_element_displayed(*self._actions_menu_locator)
コード例 #40
0
ファイル: crop_view.py プロジェクト: icke666/gaia-modui
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.wait_for_element_displayed(*self._crop_view_locator)
     self.wait_for_condition(lambda m: m.find_element(
         *self._crop_done_button_locator).is_enabled())
コード例 #41
0
ファイル: app.py プロジェクト: mmalecki/gaia
 def launch(self):
     Base.launch(self)
コード例 #42
0
ファイル: fullscreen_image.py プロジェクト: yurenju/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.wait_for_element_displayed(*self._current_image_locator)
コード例 #43
0
ファイル: keyboard.py プロジェクト: jugglinmike/gaia-ui-tests
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     section = self.marionette.find_element(*self._section_locator)
     self.wait_for_condition(lambda m: section.location['x'] == 0)
コード例 #44
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._airplane_switch_locator)
コード例 #45
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.wait_for_condition(lambda m: m.find_element(
         *self._cell_data_prompt_container_locator).location['x'] == 0)
コード例 #46
0
 def __init__(self, marionette):
     marionette.switch_to_frame()
     Base.__init__(self, marionette)
     self.root_element = marionette.find_element(*self._root_locator)
コード例 #47
0
ファイル: app.py プロジェクト: yurenju/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._section_languages_locator)
コード例 #48
0
ファイル: app.py プロジェクト: wsdigital/gaia
 def launch(self):
     Base.launch(self)
     Wait(self.marionette, ignored_exceptions=JavascriptException).until(
         lambda m: m.execute_script('return window.wrappedJSObject.Contacts.asyncScriptsLoaded') is True)
     self.wait_for_element_displayed(*self._settings_button_locator)
コード例 #49
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._progress_bar_locator)
     self.wait_for_element_displayed(*self._thumbnail_list_view_locator)
コード例 #50
0
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         expected.element_displayed(
             Wait(self.marionette).until(
                 expected.element_present(*self._app_ready_locator))))
コード例 #51
0
 def launch(self):
     Base.launch(self, launch_timeout=120000)
コード例 #52
0
 def __init__(self, marionette, app_name=False):
     Base.__init__(self, marionette)
     if app_name:
         self.name = app_name
コード例 #53
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(
         expected.element_displayed(*self._download_text_locator))
コード例 #54
0
ファイル: keypad.py プロジェクト: romanbaumgaertner/gaia
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     form = self.marionette.find_element(*self._form_locator)
     Wait(self.marionette).until(lambda m: form.location['y'] == 0)
コード例 #55
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
コード例 #56
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     Wait(self.marionette).until(
         lambda m: self.apps.displayed_app.name == self.name)
     self.apps.switch_to_displayed_app()
コード例 #57
0
ファイル: app.py プロジェクト: pcheng13/gaia-ui-tests
 def launch(self):
     Base.launch(self)
     self.wait_for_condition(lambda m: m.execute_script(
         "return window.wrappedJSObject.Browser.hasLoaded;"))
コード例 #58
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.name = UI_TESTS
コード例 #59
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.wait_for_contact_details_to_load()
コード例 #60
0
 def __init__(self, marionette):
     Base.__init__(self, marionette)
     self.marionette.switch_to_frame()
     self.wait_for_element_present(*self._persona_frame_locator)