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()
def launch(self): Base.launch(self) Wait(self.marionette).until( expected.element_displayed( Wait(self.marionette).until(expected.element_present(*self._settings_button_locator)) ) )
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)
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))))
def launch(self): Base.launch(self) Wait(self.marionette).until( expected.element_displayed( Wait(self.marionette).until(expected.element_present(*self._visible_clock_locator)) ) )
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))))
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()
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))
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'" ) )
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)
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))))
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
def launch(self): Base.launch(self) self.wait_for_camera_ready()
def launch(self): Base.launch(self) self.wait_for_element_displayed(*self._airplane_switch_locator)
def launch(self): Base.launch(self) self.wait_for_capture_ready()
def launch(self): Base.launch(self, launch_timeout=120000) self.wait_for_element_displayed(*self._pub_app_msg_to_send_locator)
def launch(self): Base.launch(self) self.wait_for_condition(lambda m: m.execute_script( "return window.wrappedJSObject.Browser.hasLoaded;"))
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)
def launch(self): Base.launch(self) Wait(self.marionette).until( expected.element_displayed( Wait(self.marionette).until( expected.element_present(*self._settings_button_locator))))
def launch(self): Base.launch(self) self.wait_for_element_not_displayed(*self._progress_bar_locator)
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)
def launch(self): Base.launch(self) self.wait_for_element_not_displayed(*self._loading_fragment_locator)
def launch(self): Base.launch(self) self.wait_for_element_not_displayed(*self._loading_spinner_locator)
def launch(self): Base.launch(self) self.wait_for_new_alarm_button()
def launch(self): Base.launch(self) self.wait_for_new_alarm_button() # Desperate attempt to bust the intermittency :( time.sleep(1)
def launch(self): Base.launch(self) self.wait_for_element_present(*self._app_loaded_locator)
def launch(self): Base.launch(self, launch_timeout=120000) Wait(self.marionette).until( expected.element_displayed(*self._pub_app_msg_to_send_locator))
def launch(self): Base.launch(self)
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'" ))
def launch(self): Base.launch(self) Wait(self.marionette).until(expected.element_displayed(*self._section_languages_locator))
def launch(self): Base.launch(self) self.wait_for_element_present(*self._main_frame_locator)
def launch(self): Base.launch(self) self.wait_for_capture_ready() self.wait_for_element_not_displayed(*self._loading_screen_locator)
def launch(self): Base.launch(self) self.wait_for_element_displayed(*self._summary_header_locator)
def launch(self): Base.launch(self, launch_timeout=120000) self.wait_for_element_not_displayed(*self._loading_fragment_locator)
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)
def launch(self): Base.launch(self, launch_timeout=120000)
def launch(self): Base.launch(self) Wait(self.marionette).until( lambda m: m.find_element(*self._power_button_locator).get_attribute("data-enabled") == "true" )
def launch(self, empty=False): Base.launch(self) if empty: self.wait_for_overlay_to_show() else: self.wait_for_thumbnail_view_to_load()
def launch(self): Base.launch(self) Wait(self.marionette).until( expected.element_displayed(*self._keypad_toolbar_button_locator))
def launch(self): Base.launch(self) self.wait_for_condition(lambda m: m.execute_script("return window.wrappedJSObject.Browser.hasLoaded;"))
def launch(self): Base.launch(self) self.wait_for_element_displayed(*self._settings_button_locator)
def launch(self): Base.launch(self) Wait(self.marionette).until( lambda m: m.find_element(*self._power_button_locator ).get_attribute('data-enabled') == "true")
def launch(self, server=default_server): Base.launch(self, launch_timeout=120000) self.apps.switch_to_displayed_app() self.set_server(server)
def launch(self): Base.launch(self) Wait(self.marionette).until(expected.element_displayed( Wait(self.marionette).until(expected.element_present( *self._section_languages_locator))))
def launch(self): Base.launch(self) self.wait_for_element_displayed(*self._section_languages_locator)
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))))
def launch(self): Base.launch(self) Wait(self.marionette).until( expected.element_not_displayed(*self._loading_spinner_locator))
def switch_to_chrome(self): Base.launch(self)
def launch(self): Base.launch(self) self.wait_for_element_displayed(*self._create_new_message_locator)
def launch(self): Base.launch(self) Wait(self.marionette).until(expected.element_not_displayed( *self._loading_spinner_locator))
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)