Пример #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
 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
 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
 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
 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()