def tap_share_to_messages(self): element = Wait(self.marionette).until( expected.element_present(*self._share_to_messages_button_locator)) Wait(self.marionette).until(expected.element_displayed(element)) element.tap() from gaiatest.apps.messages.regions.new_message import NewMessage return NewMessage(self.marionette)
def share_to_messages(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._messages_button_locator).tap() Wait(self.marionette).until( expected.element_not_displayed(actions_menu)) from gaiatest.apps.messages.regions.new_message import NewMessage return NewMessage(self.marionette)
def tap_send_sms(self): self.marionette.find_element(*self._send_sms_button_locator).tap() from gaiatest.apps.messages.regions.new_message import NewMessage return NewMessage(self.marionette)
def tap_create_new_message(self): self.marionette.find_element(*self._create_new_message_locator).tap() from gaiatest.apps.messages.regions.new_message import NewMessage return NewMessage(self.marionette)
def tap_draft_message(self): self.root_element.tap() from gaiatest.apps.messages.regions.new_message import NewMessage return NewMessage(self.marionette)
def tap_share_to_messages(self): self.wait_for_element_displayed(*self._share_to_messages_button_locator) self.marionette.find_element(*self._share_to_messages_button_locator).tap() from gaiatest.apps.messages.regions.new_message import NewMessage return NewMessage(self.marionette)