def tap_header(self): element = self.marionette.find_element(*self._header_link_locator) Wait(self.marionette).until(lambda m: element.location['x'] == 0) self.marionette.find_element(*self._message_header_locator).tap() from gaiatest.apps.messages.regions.activities import Activities return Activities(self.marionette)
def tap_header(self): self.wait_for_condition(lambda m: m.find_element( *self._back_header_link_locator).location['x'] == 0) self.marionette.find_element(*self._message_header_locator).tap() from gaiatest.apps.messages.regions.activities import Activities return Activities(self.marionette)
def long_press_message(self): message = self.root_element.find_element(*self._message_section_locator) Actions(self.marionette).\ press(message).\ wait(3).\ release().\ perform() from gaiatest.apps.messages.regions.activities import Activities return Activities(self.marionette)
def tap_options(self): self.marionette.find_element(*self._options_icon_locator).tap() from gaiatest.apps.messages.regions.activities import Activities return Activities(self.marionette)