コード例 #1
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()
コード例 #2
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))
         )
     )
コード例 #3
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)
コード例 #4
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))))
コード例 #5
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))
         )
     )
コード例 #6
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))))
コード例 #7
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()
コード例 #8
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))
コード例 #9
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'"
         )
     )
コード例 #10
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)
コード例 #11
0
ファイル: app.py プロジェクト: Mozilla-TWQA/MTBF-Driver
    def launch(self):
        Base.launch(self)

        self.close_existing_edit_form()

        self.clear_search_view()

        Wait(self.marionette).until(expected.element_displayed(
            Wait(self.marionette).until(expected.element_present(
                *self._settings_button_locator))))
コード例 #12
0
ファイル: app.py プロジェクト: Mozilla-TWQA/MTBF-Driver
 def kill_abnormal_camera_app(self):
     Base.launch(self)
     viewfinder = Wait(self.marionette).until(expected.element_present(*self._viewfinder_video_locator))
     try:
         Wait(self.marionette, timeout=10).until(lambda m: m.execute_script('return arguments[0].readyState;', [viewfinder]) > 0)
         return True
     except:
         #Kill Camera app
         self.marionette.switch_to_frame()
         app_origin_name = self.marionette.execute_script("return GaiaApps.getRunningAppOrigin('%s');" % Camera.name)
         self.marionette.execute_async_script("GaiaApps.kill('%s');" % app_origin_name)
         result = self.marionette.execute_script('return GaiaApps.getDisplayedApp();')
         Wait(self.marionette).until(lambda m: result.get('name').lower() == 'default home screen')
         return False
コード例 #13
0
ファイル: app.py プロジェクト: xuxiake2012/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_camera_ready()
コード例 #14
0
ファイル: app.py プロジェクト: xuxiake2012/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._airplane_switch_locator)
コード例 #15
0
ファイル: app.py プロジェクト: sarahhodne/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_capture_ready()
コード例 #16
0
 def launch(self):
     Base.launch(self, launch_timeout=120000)
     self.wait_for_element_displayed(*self._pub_app_msg_to_send_locator)
コード例 #17
0
 def launch(self):
     Base.launch(self)
     self.wait_for_condition(lambda m: m.execute_script(
         "return window.wrappedJSObject.Browser.hasLoaded;"))
コード例 #18
0
ファイル: app.py プロジェクト: GotoCode/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._visible_clock_locator)
     self.wait_for_element_displayed(*self._alarm_create_new_locator)
コード例 #19
0
ファイル: app.py プロジェクト: anderson-rosa/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))))
コード例 #20
0
ファイル: app.py プロジェクト: askeing/gaia-ui-tests
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._airplane_switch_locator)
コード例 #21
0
ファイル: app.py プロジェクト: xuxiake2012/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._progress_bar_locator)
コード例 #22
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._loading_overlay_locator)
     self.wait_for_element_displayed(*self._settings_button_locator)
コード例 #23
0
ファイル: app.py プロジェクト: eeejay/gaia-ui-tests
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._loading_fragment_locator)
コード例 #24
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._loading_spinner_locator)
コード例 #25
0
ファイル: app.py プロジェクト: nikhilm/gaia-ui-tests
 def launch(self):
     Base.launch(self)
     self.wait_for_new_alarm_button()
コード例 #26
0
ファイル: app.py プロジェクト: wsdigital/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_new_alarm_button()
     # Desperate attempt to bust the intermittency :(
     time.sleep(1)
コード例 #27
0
ファイル: app.py プロジェクト: mwargers/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_present(*self._app_loaded_locator)
コード例 #28
0
 def launch(self):
     Base.launch(self, launch_timeout=120000)
     Wait(self.marionette).until(
         expected.element_displayed(*self._pub_app_msg_to_send_locator))
コード例 #29
0
ファイル: app.py プロジェクト: AutomatedTester/gaia
 def launch(self):
     Base.launch(self)
コード例 #30
0
 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'"
     ))
コード例 #31
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_present(*self._app_loaded_locator)
コード例 #32
0
ファイル: app.py プロジェクト: zhannett/gaia
 def launch(self):
     Base.launch(self)
コード例 #33
0
ファイル: app.py プロジェクト: kuoe0/gaia-dev
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(expected.element_displayed(*self._section_languages_locator))
コード例 #34
0
ファイル: app.py プロジェクト: wsdigital/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_present(*self._main_frame_locator)
コード例 #35
0
ファイル: app.py プロジェクト: try-server-hook/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_capture_ready()
     self.wait_for_element_not_displayed(*self._loading_screen_locator)
コード例 #36
0
ファイル: app.py プロジェクト: Bharatpattani/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_capture_ready()
コード例 #37
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._summary_header_locator)
コード例 #38
0
ファイル: app.py プロジェクト: nikhilm/gaia-ui-tests
 def launch(self):
     Base.launch(self, launch_timeout=120000)
     self.wait_for_element_not_displayed(*self._loading_fragment_locator)
コード例 #39
0
ファイル: app.py プロジェクト: AlxxxlA/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._hint_swipe_to_navigate_locator)
     self.marionette.find_element(*self._hint_swipe_to_navigate_locator).tap()
     self.wait_for_element_not_displayed(*self._hint_swipe_to_navigate_locator)
コード例 #40
0
ファイル: app.py プロジェクト: staging-mozilla-b2g/gaia
 def launch(self):
     Base.launch(self, launch_timeout=120000)
コード例 #41
0
ファイル: app.py プロジェクト: paulrouget/gaia
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         lambda m: m.find_element(*self._power_button_locator).get_attribute("data-enabled") == "true"
     )
コード例 #42
0
 def launch(self, empty=False):
     Base.launch(self)
     if empty:
         self.wait_for_overlay_to_show()
     else:
         self.wait_for_thumbnail_view_to_load()
コード例 #43
0
    def launch(self):
        Base.launch(self)

        Wait(self.marionette).until(
            expected.element_displayed(*self._keypad_toolbar_button_locator))
コード例 #44
0
ファイル: app.py プロジェクト: AaronMT/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._progress_bar_locator)
コード例 #45
0
ファイル: app.py プロジェクト: Allios/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_condition(lambda m: m.execute_script("return window.wrappedJSObject.Browser.hasLoaded;"))
コード例 #46
0
ファイル: app.py プロジェクト: Mozilla-TWQA/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._settings_button_locator)
コード例 #47
0
ファイル: app.py プロジェクト: eeejay/gaia-ui-tests
 def launch(self):
     Base.launch(self)
     self.wait_for_new_alarm_button()
コード例 #48
0
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         lambda m: m.find_element(*self._power_button_locator
                                  ).get_attribute('data-enabled') == "true")
コード例 #49
0
 def launch(self, server=default_server):
     Base.launch(self, launch_timeout=120000)
     self.apps.switch_to_displayed_app()
     self.set_server(server)
コード例 #50
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._visible_clock_locator)
     self.wait_for_element_displayed(*self._alarm_create_new_locator)
コード例 #51
0
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._section_languages_locator))))
コード例 #52
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._section_languages_locator)
コード例 #53
0
ファイル: app.py プロジェクト: 6a68/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._progress_bar_locator)
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._thumbnail_list_view_locator))))
コード例 #54
0
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         expected.element_not_displayed(*self._loading_spinner_locator))
コード例 #55
0
ファイル: app.py プロジェクト: 4gh/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_capture_ready()
     self.wait_for_element_not_displayed(*self._loading_screen_locator)
コード例 #56
0
ファイル: app.py プロジェクト: jmcanterafonseca/gaia-ui-tests
 def switch_to_chrome(self):
     Base.launch(self)
コード例 #57
0
ファイル: app.py プロジェクト: ahutchings/gaia
 def launch(self):
     Base.launch(self, launch_timeout=120000)
コード例 #58
0
ファイル: app.py プロジェクト: sandra-sie/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._create_new_message_locator)
コード例 #59
0
ファイル: app.py プロジェクト: Anirudh0/gaia
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(expected.element_not_displayed(
         *self._loading_spinner_locator))
コード例 #60
0
ファイル: app.py プロジェクト: vaidik/gaia-ui-tests
 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)