How to use the gaiatest.apps.base.Base.launch function in gaiatest

To help you get started, we’ve selected a few gaiatest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / fmradio / app.py View on Github external
def launch(self, airplane_mode=False):
        Base.launch(self)
        power = Wait(self.marionette).until(
            expected.element_present(*self._power_button_locator))
        if not airplane_mode:
            Wait(self.marionette).until(lambda m: power.get_attribute('data-enabled') == 'true')
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / calendar / app.py View on Github external
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))))
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / ftu / app.py View on Github external
def launch(self):
        Base.launch(self)
        Wait(self.marionette).until(expected.element_displayed(
            Wait(self.marionette).until(expected.element_present(
                *self._section_languages_locator))))
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / clock / app.py View on Github external
def launch(self):
        Base.launch(self)
        Wait(self.marionette).until(expected.element_displayed(
            Wait(self.marionette).until(expected.element_present(
                *self._visible_clock_locator))))
        Wait(self.marionette).until(expected.element_displayed(
            Wait(self.marionette).until(expected.element_present(
                *self._alarm_create_new_locator))))
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / camera / app.py View on Github external
def launch(self):
        Base.launch(self)
        self.wait_for_capture_ready()
        self.wait_for_element_not_displayed(*self._loading_screen_locator)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / testapp / app.py View on Github external
def launch(self):
        Base.launch(self)
        self.wait_for_element_present(*self._main_frame_locator)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / system / regions / iac_publisher.py View on Github external
def launch(self):
        Base.launch(self, launch_timeout=120000)
        self.wait_for_element_displayed(*self._pub_app_msg_to_send_locator)