コード例 #1
0
 def tap_new_alarm(self):
     new_alarm = Wait(self.marionette).until(
         expected.element_present(*self._alarm_create_new_locator))
     Wait(self.marionette).until(expected.element_displayed(new_alarm))
     new_alarm.tap()
     from gaiatest.apps.clock.regions.alarm import NewAlarm
     return NewAlarm(self.marionette)
コード例 #2
0
ファイル: keypad.py プロジェクト: bebef1987/gaia
 def tap_call_button(self, switch_to_call_screen=True):
     element = Wait(self.marionette).until(
         expected.element_present(*self._call_bar_locator))
     Wait(self.marionette).until(expected.element_enabled(element))
     element.tap()
     if switch_to_call_screen:
         return CallScreen(self.marionette)
コード例 #3
0
ファイル: app.py プロジェクト: anrao91/gaia
 def confirm_usb_storage(self):
     element = Wait(self.marionette).until(expected.element_present(*self._usb_storage_confirm_button_locator))
     Wait(self.marionette).until(expected.element_displayed(element))
     element.tap()
コード例 #4
0
ファイル: battery.py プロジェクト: orivier/gaia
 def tap_turn_on_auto(self):
     power_save_turn_on_auto = Wait(self.marionette).until(
         expected.element_present(*self._power_save_turn_on_auto_locator))
     power_save_turn_on_auto.tap()
コード例 #5
0
ファイル: battery.py プロジェクト: 6a68/gaia
 def tap_turn_on_auto(self):
     power_save_turn_on_auto = Wait(self.marionette).until(expected.element_present(*self._power_save_turn_on_auto_locator))
     power_save_turn_on_auto.tap()