예제 #1
0
 def __init__(self, marionette):
     root = marionette.find_element(*self._details_page_locator)
     PageRegion.__init__(self, marionette, root)
     Wait(self.marionette).until(expected.element_displayed(
         self.root_element.find_element(*self._affected_apps_locator)))
     Wait(self.marionette).until(expected.element_displayed(
         self.root_element.find_element(*self._state_toggle_locator)))
예제 #2
0
 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)
예제 #3
0
파일: alarm.py 프로젝트: Archaeopteryx/gaia
 def __init__(self, marionette):
     PageRegion.__init__(self, marionette,self._alarm_view_locator)
     view = self.marionette.find_element(*self._alarm_view_locator)
     Wait(self.marionette).until(lambda m: view.location['x'] == 0 and view.is_displayed())
     Wait(self.marionette).until(expected.element_displayed(
         Wait(self.marionette).until(expected.element_present(
             *self._alarm_create_new_locator))))
예제 #4
0
 def __init__(self, marionette):
     root = marionette.find_element(*self._details_page_locator)
     PageRegion.__init__(self, marionette, root)
     Wait(self.marionette).until(
         expected.element_displayed(
             self.root_element.find_element(*self._affected_apps_locator)))
     Wait(self.marionette).until(
         expected.element_displayed(
             self.root_element.find_element(*self._state_toggle_locator)))
예제 #5
0
파일: bottom_bar.py 프로젝트: nullaus/gaia
    def __init__(self, marionette):
        GaiaApps(marionette).switch_to_displayed_app()
        root = Wait(marionette).until(expected.element_present(*self._bottom_bar_locator))
        Wait(marionette).until(expected.element_displayed(root))

        window_height = marionette.execute_script("return window.wrappedJSObject.innerHeight")
        Wait(marionette).until(lambda m: int(root.rect["y"] + root.size["height"]) == window_height)

        PageRegion.__init__(self, marionette, root)
예제 #6
0
 def __init__(self, marionette):
     PageRegion.__init__(self, marionette, self._alarm_view_locator)
     view = self.marionette.find_element(*self._alarm_view_locator)
     Wait(self.marionette).until(
         lambda m: view.location['x'] == 0 and view.is_displayed())
     Wait(self.marionette).until(
         expected.element_displayed(
             Wait(self.marionette).until(
                 expected.element_present(
                     *self._alarm_create_new_locator))))
예제 #7
0
    def __init__(self, marionette):
        GaiaApps(marionette).switch_to_displayed_app()
        root = Wait(marionette).until(
            expected.element_present(*self._bottom_bar_locator))
        Wait(marionette).until(expected.element_displayed(root))

        window_height = marionette.execute_script(
            'return window.wrappedJSObject.innerHeight')
        Wait(marionette).until(lambda m: int(root.rect['y'] + root.size[
            'height']) == window_height)

        PageRegion.__init__(self, marionette, root)
예제 #8
0
 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)
예제 #9
0
 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())
예제 #10
0
 def __init__(self, marionette, locator):
     element = Wait(marionette).until(expected.element_present(*locator))
     PageRegion.__init__(self, marionette, element)
예제 #11
0
 def __init__(self, marionette):
     root = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, root)
     Wait(self.marionette).until(expected.element_displayed(*self._lockscreen_checkbox_locator))
예제 #12
0
 def __init__(self, marionette):
     root = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, root)
     Wait(self.marionette).until(
         expected.element_displayed(*self._bluetooth_label_locator))
예제 #13
0
파일: cards_view.py 프로젝트: Cwiiis/gaia
 def __init__(self, marionette):
     marionette.switch_to_frame()
     root = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, root)
예제 #14
0
 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)
예제 #15
0
 def __init__(self, marionette):
     element = marionette.find_element(*self._root_element_locator)
     PageRegion.__init__(self, marionette, element)
     Wait(marionette).until(
         lambda m: 'current' in element.get_attribute('class'))
예제 #16
0
파일: app.py 프로젝트: kuoe0/gaia-dev
 def __init__(self, marionette):
     PageRegion.__init__(self, marionette, marionette.find_element(*self._main_locator))
     Wait(self.marionette).until(lambda m: self.root_element.rect['x'] == 0 and self.root_element.is_displayed())
예제 #17
0
 def __init__(self, marionette):
     element = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, element)
     Wait(self.marionette).until(lambda m: element.is_displayed())
예제 #18
0
 def __init__(self, marionette):
     element = marionette.find_element(*self._root_element_locator)
     PageRegion.__init__(self, marionette, element)
     Wait(marionette).until(lambda m: 'current' in element.get_attribute('class'))
예제 #19
0
 def __init__(self, marionette):
     root = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, root)
     self.wait_for_panel_to_appear()
예제 #20
0
 def __init__(self, marionette):
     root = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, root)
     Wait(self.marionette).until(
         expected.element_displayed(*self._lockscreen_checkbox_locator))
예제 #21
0
파일: cards_view.py 프로젝트: Bierkamp/gaia
 def __init__(self, marionette):
     marionette.switch_to_frame()
     root = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, root)
예제 #22
0
파일: status_bar.py 프로젝트: pottierg/gaia
 def __init__(self, marionette, locator):
     element = marionette.find_element(*locator)
     PageRegion.__init__(self, marionette, element)
     self._locator = locator
예제 #23
0
 def __init__(self, marionette):
     root = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, root)
     Wait(self.marionette).until(expected.element_displayed(*self._bluetooth_label_locator))
예제 #24
0
 def __init__(self, marionette, locator):
     element = marionette.find_element(*locator)
     PageRegion.__init__(self, marionette, element)
     self._locator = locator
예제 #25
0
 def __init__(self, marionette, element, _active_view_locator):
     PageRegion.__init__(self, marionette, element)
     self._active_view_locator = _active_view_locator
예제 #26
0
파일: timer.py 프로젝트: Archaeopteryx/gaia
 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())
예제 #27
0
 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)
예제 #28
0
파일: options.py 프로젝트: kuoe0/gaia-dev
 def __init__(self, marionette):
     root = marionette.find_element(*self._root_locator)
     PageRegion.__init__(self, marionette, root)
     self.wait_for_panel_to_appear()