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
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
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)
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)
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)
def tap_manage_tones_selector(self): self.marionette.find_element( *self._manage_tones_selector_locator).tap() return RingTone(self.marionette)
def tap_alerts_selector(self): self.marionette.find_element(*self._alert_selector_locator).tap() return RingTone(self.marionette)
def tap_ring_tone_selector(self): self.marionette.find_element(*self._ring_tone_selector_locator).tap() return RingTone(self.marionette)