How to use the gaiatest.apps.base.PageRegion.__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 / clock / regions / stopwatch.py View on Github external
def __init__(self, marionette):
        PageRegion.__init__(self, marionette, self._stopwatch_view_locator)
        view = self.marionette.find_element(*self._stopwatch_view_locator)
        Wait(self.marionette).until(lambda m: view.location['x'] == 0 and view.is_displayed())
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / settings / regions / device_info.py View on Github external
def __init__(self, marionette):
            root = marionette.find_element(*self._root_locator)
            PageRegion.__init__(self, marionette, root)
            Wait(self.marionette).until(expected.element_displayed(*self._os_version_locator))
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / form_controls / form_control.py View on Github external
def __init__(self, marionette, locator):
        if type(locator) is tuple:
            element = Wait(marionette).until(expected.element_present(*locator))
        else:
            element = locator
        PageRegion.__init__(self, marionette, element)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / clock / regions / timer.py View on Github external
def __init__(self, marionette):
        PageRegion.__init__(self, marionette, self._timer_view_locator)
        view = self.marionette.find_element(*self._timer_view_locator)
        Wait(self.marionette).until(lambda m: view.location['x'] == 0 and view.is_displayed())
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / system / regions / fullscreen_dialog.py View on Github external
def __init__(self, marionette):
        marionette.switch_to_frame()
        root = Wait(marionette).until(
            expected.element_present(*self._tracking_notice_locator))
        Wait(marionette).until(expected.element_displayed(root))
        PageRegion.__init__(self, marionette, root)
github mozilla-b2g / gaia / tests / python / gaia-ui-tests / gaiatest / apps / system / regions / cards_view.py View on Github external
def __init__(self, marionette):
        marionette.switch_to_frame()
        root = marionette.find_element(*self._root_locator)
        PageRegion.__init__(self, marionette, root)