示例#1
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.switch_to_keypad_frame()
     keypad_toolbar_button = self.marionette.find_element(
         *self._keypad_toolbar_button_locator)
     self.wait_for_condition(lambda m: 'toolbar-option-selected' in
                             keypad_toolbar_button.get_attribute('class'))
示例#2
0
    def __init__(self, marionette):
        Phone.__init__(self, marionette)

        self.marionette.switch_to_frame()

        self.wait_for_element_present(*self._call_screen_locator, timeout=30)

        call_screen = self.marionette.find_element(*self._call_screen_locator)
        self.marionette.switch_to_frame(call_screen)
示例#3
0
    def __init__(self, marionette):
        Phone.__init__(self, marionette)

        self.marionette.switch_to_frame()

        self.wait_for_element_present(*self._call_screen_locator, timeout=30)

        call_screen = self.marionette.find_element(*self._call_screen_locator)
        self.marionette.switch_to_frame(call_screen)
示例#4
0
文件: keypad.py 项目: kuoe0/gaia-dev
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_to_be_displayed()
     self.apps.switch_to_displayed_app()
     keypad_toolbar_button = self.marionette.find_element(
         *self._keypad_toolbar_button_locator)
     Wait(self.marionette).until(
         lambda m: 'toolbar-option-selected' in keypad_toolbar_button.
         get_attribute('class'))
示例#5
0
    def __init__(self, marionette):
        Phone.__init__(self, marionette)

        self.switch_to_call_screen_frame()
示例#6
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.switch_to_keypad_frame()
     keypad_toolbar_button = self.marionette.find_element(*self._keypad_toolbar_button_locator)
     self.wait_for_condition(lambda m: "toolbar-option-selected" in keypad_toolbar_button.get_attribute("class"))
示例#7
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     Wait(self.marionette).until(
         expected.element_not_displayed(*self._upgrade_progress_locator))
     Wait(self.marionette).until(
         expected.element_displayed(*self._all_calls_tab_link_locator))
示例#8
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     # TODO sometimes we may tap before the click handlers are ready
     time.sleep(0.5)
示例#9
0
文件: call_log.py 项目: AlexSJ/gaia
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_for_element_not_displayed(*self._upgrade_progress_locator)
     self.wait_for_element_displayed(*self._all_calls_tab_link_locator)
示例#10
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
示例#11
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.marionette.switch_to_frame()
     self.marionette.switch_to_frame(
         self.marionette.find_element(*self._attention_frame_locator))
示例#12
0
文件: keypad.py 项目: AxelRoyer/gaia
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_for_condition(lambda m: self.apps.displayed_app.name == self.name)
     self.apps.switch_to_displayed_app()
     keypad_toolbar_button = self.marionette.find_element(*self._keypad_toolbar_button_locator)
     self.wait_for_condition(lambda m: 'toolbar-option-selected' in keypad_toolbar_button.get_attribute('class'))
示例#13
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_for_element_displayed(*self._all_calls_tab_locator)
示例#14
0
文件: keypad.py 项目: sandra-sie/gaia
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     # TODO sometimes we may tap before the click handlers are ready
     time.sleep(0.5)
示例#15
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_for_element_displayed(*self._all_calls_tab_locator)
示例#16
0
    def __init__(self, marionette):
        Phone.__init__(self, marionette)

        self.switch_to_call_screen_frame()
示例#17
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.marionette.switch_to_frame()
     self.marionette.switch_to_frame(self.marionette.find_element(*self._attention_frame_locator))
示例#18
0
文件: call_log.py 项目: adrm/gaia
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     Wait(self.marionette).until(
         expected.element_not_displayed(*self._upgrade_progress_locator))
     Wait(self.marionette).until(
         expected.element_displayed(*self._all_calls_tab_link_locator))
示例#19
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_for_element_not_displayed(*self._upgrade_progress_locator)
     self.wait_for_element_displayed(*self._all_calls_tab_link_locator)
示例#20
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
示例#21
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_for_element_displayed(*self._keyboard_container_locator)
示例#22
0
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_for_element_displayed(*self._keyboard_container_locator)
示例#23
0
文件: keypad.py 项目: Cwiiis/gaia
 def __init__(self, marionette):
     Phone.__init__(self, marionette)
     self.wait_to_be_displayed()
     self.apps.switch_to_displayed_app()
     keypad_toolbar_button = self.marionette.find_element(*self._keypad_toolbar_button_locator)
     Wait(self.marionette).until(lambda m: 'toolbar-option-selected' in keypad_toolbar_button.get_attribute('class'))