Example #1
0
    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()
Example #2
0
File: app.py Project: 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))
         )
     )
Example #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)
Example #4
0
File: app.py Project: 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))))
Example #5
0
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         expected.element_displayed(
             Wait(self.marionette).until(expected.element_present(*self._visible_clock_locator))
         )
     )
Example #6
0
 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))))
Example #7
0
 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()
Example #8
0
    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))
Example #9
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'"
         )
     )
Example #10
0
    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)
Example #11
0
    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))))
Example #12
0
 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
Example #13
0
 def launch(self):
     Base.launch(self)
     self.wait_for_camera_ready()
Example #14
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._airplane_switch_locator)
Example #15
0
 def launch(self):
     Base.launch(self)
     self.wait_for_capture_ready()
Example #16
0
 def launch(self):
     Base.launch(self, launch_timeout=120000)
     self.wait_for_element_displayed(*self._pub_app_msg_to_send_locator)
Example #17
0
 def launch(self):
     Base.launch(self)
     self.wait_for_condition(lambda m: m.execute_script(
         "return window.wrappedJSObject.Browser.hasLoaded;"))
Example #18
0
File: app.py Project: 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)
Example #19
0
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         expected.element_displayed(
             Wait(self.marionette).until(
                 expected.element_present(*self._settings_button_locator))))
Example #20
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._airplane_switch_locator)
Example #21
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._progress_bar_locator)
Example #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)
Example #23
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._loading_fragment_locator)
Example #24
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._loading_spinner_locator)
Example #25
0
 def launch(self):
     Base.launch(self)
     self.wait_for_new_alarm_button()
Example #26
0
 def launch(self):
     Base.launch(self)
     self.wait_for_new_alarm_button()
     # Desperate attempt to bust the intermittency :(
     time.sleep(1)
Example #27
0
File: app.py Project: mwargers/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_present(*self._app_loaded_locator)
Example #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))
Example #29
0
 def launch(self):
     Base.launch(self)
Example #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'"
     ))
Example #31
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_present(*self._app_loaded_locator)
Example #32
0
File: app.py Project: zhannett/gaia
 def launch(self):
     Base.launch(self)
Example #33
0
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(expected.element_displayed(*self._section_languages_locator))
Example #34
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_present(*self._main_frame_locator)
Example #35
0
 def launch(self):
     Base.launch(self)
     self.wait_for_capture_ready()
     self.wait_for_element_not_displayed(*self._loading_screen_locator)
Example #36
0
 def launch(self):
     Base.launch(self)
     self.wait_for_capture_ready()
Example #37
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._summary_header_locator)
Example #38
0
 def launch(self):
     Base.launch(self, launch_timeout=120000)
     self.wait_for_element_not_displayed(*self._loading_fragment_locator)
Example #39
0
File: app.py Project: 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)
Example #40
0
 def launch(self):
     Base.launch(self, launch_timeout=120000)
Example #41
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"
     )
Example #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()
Example #43
0
    def launch(self):
        Base.launch(self)

        Wait(self.marionette).until(
            expected.element_displayed(*self._keypad_toolbar_button_locator))
Example #44
0
File: app.py Project: AaronMT/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_element_not_displayed(*self._progress_bar_locator)
Example #45
0
File: app.py Project: Allios/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_condition(lambda m: m.execute_script("return window.wrappedJSObject.Browser.hasLoaded;"))
Example #46
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._settings_button_locator)
Example #47
0
 def launch(self):
     Base.launch(self)
     self.wait_for_new_alarm_button()
Example #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")
Example #49
0
 def launch(self, server=default_server):
     Base.launch(self, launch_timeout=120000)
     self.apps.switch_to_displayed_app()
     self.set_server(server)
Example #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)
Example #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))))
Example #52
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._section_languages_locator)
Example #53
0
File: app.py Project: 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))))
Example #54
0
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(
         expected.element_not_displayed(*self._loading_spinner_locator))
Example #55
0
File: app.py Project: 4gh/gaia
 def launch(self):
     Base.launch(self)
     self.wait_for_capture_ready()
     self.wait_for_element_not_displayed(*self._loading_screen_locator)
Example #56
0
 def switch_to_chrome(self):
     Base.launch(self)
Example #57
0
 def launch(self):
     Base.launch(self, launch_timeout=120000)
Example #58
0
 def launch(self):
     Base.launch(self)
     self.wait_for_element_displayed(*self._create_new_message_locator)
Example #59
0
File: app.py Project: Anirudh0/gaia
 def launch(self):
     Base.launch(self)
     Wait(self.marionette).until(expected.element_not_displayed(
         *self._loading_spinner_locator))
Example #60
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)