How to use the gaiatest.apps.base.Base.__init__ 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 / cost_control / regions / ftu_step1.py View on Github external
def __init__(self, marionette):
        Base.__init__(self, marionette)
        title = self.marionette.find_element(*self._welcome_title_locator)
        Wait(self.marionette).until(lambda m: title.location['x'] == 0)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / settings / regions / keyboard.py View on Github external
def __init__(self, marionette):
        Base.__init__(self, marionette)
        section = self.marionette.find_element(*self._section_locator)
        Wait(self.marionette).until(lambda m: section.location['x'] == 0)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / messages / regions / messaging_settings.py View on Github external
def __init__(self, marionette):
        Base.__init__(self, marionette)
        Wait(self.marionette).until(expected.element_displayed(
            Wait(self.marionette).until(expected.element_present(
                *self._messaging_settings_locator))))
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / music / regions / sublist_view.py View on Github external
def __init__(self, marionette):
        Base.__init__(self, marionette)
        element = self.marionette.find_element(*self._song_number_locator)
        Wait(self.marionette).until(lambda m: element.location['x'] == 0)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / music / regions / list_view.py View on Github external
def __init__(self, marionette):
        Base.__init__(self, marionette)

        Wait(self.marionette).until(
            lambda m: self.marionette.find_element(*self._view_locator).get_attribute('class') != 'scrolling')
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / system / regions / facebook.py View on Github external
def __init__(self, marionette):
        Base.__init__(self, marionette)
        self.marionette.switch_to_frame()

        # wait for the pop up screen to open
        view = Wait(self.marionette, timeout=60).until(
            expected.element_present(*self._iframe_locator))
        Wait(self.marionette).until(expected.element_displayed(view))

        # Change the app to make use of the Facebook developer appId
        Wait(self.marionette, timeout=60).until(lambda m: view.get_attribute('data-url') != 'about:blank')

        # Desktop b2g uses this
        str = view.get_attribute('data-url').replace('123456', '323630664378726')
        # Device uses this
        str = str.replace('395559767228801', '323630664378726')

        self.marionette.switch_to_frame(view)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / contacts / regions / contact_details.py View on Github external
def __init__(self, marionette):
        Base.__init__(self, marionette)
        el = self.marionette.find_element(*self._details_header_locator)
        Wait(self.marionette).until(lambda m: el.location['x'] == 0)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / marketplace / regions / search_results.py View on Github external
def __init__(self, marionette):
        Base.__init__(self, marionette)
        self.wait_for_element_not_present(*self._search_results_loading_locator)