Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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())
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))
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)
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())
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)
def __init__(self, marionette):
marionette.switch_to_frame()
root = marionette.find_element(*self._root_locator)
PageRegion.__init__(self, marionette, root)