예제 #1
0
 def tap_alerts_selector(self):
     self.marionette.find_element(*self._alert_selector_locator).tap()
     alerts_page = RingTone(self.marionette)
     element = self.marionette.find_element(*self._firefox_alerts_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     return alerts_page
예제 #2
0
 def tap_manage_tones_selector(self):
     self.marionette.find_element(*self._manage_tones_selector_locator).tap()
     manage_tones_page = RingTone(self.marionette)
     element = self.marionette.find_element(*self._dulco_ringtone_locator)
     Wait(self.marionette).until(expected.element_displayed(element) and
                                 expected.element_enabled(element))
     return manage_tones_page
예제 #3
0
 def share_to_ringtones(self):
     actions_menu = Wait(self.marionette).until(
         expected.element_present(*self._actions_menu_locator))
     Wait(self.marionette).until(
         expected.element_displayed(actions_menu))
     self.marionette.find_element(*self._ringtones_button_locator).tap()
     Wait(self.marionette).until(
         expected.element_not_displayed(actions_menu))
     from gaiatest.apps.ring_tone.app import RingTone
     return RingTone(self.marionette)
예제 #4
0
 def tap_ring_tone_selector(self):
     self.marionette.find_element(*self._ring_tone_selector_locator).tap()
     from gaiatest.apps.ring_tone.app import RingTone
     return RingTone(self.marionette)
예제 #5
0
 def share_to_ringtones(self):
     self.marionette.find_element(*self._ringtones_button_locator).tap()
     self.wait_for_element_not_displayed(*self._actions_menu_locator)
     from gaiatest.apps.ring_tone.app import RingTone
     return RingTone(self.marionette)
예제 #6
0
 def tap_manage_tones_selector(self):
     self.marionette.find_element(
         *self._manage_tones_selector_locator).tap()
     return RingTone(self.marionette)
예제 #7
0
 def tap_alerts_selector(self):
     self.marionette.find_element(*self._alert_selector_locator).tap()
     return RingTone(self.marionette)
예제 #8
0
 def tap_ring_tone_selector(self):
     self.marionette.find_element(*self._ring_tone_selector_locator).tap()
     return RingTone(self.marionette)