예제 #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
    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
 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
 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
 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
 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
 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
 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)