def tap_add_to_home(self): element = self._root_element.find_element( *self._add_to_home_button_locator) Wait(self.marionette).until(expected.element_displayed(element)) element.tap() from gaiatest.apps.homescreen.regions.bookmark_menu import BookmarkMenu return BookmarkMenu(self.marionette)
def tap_add_to_home(self): self.wait_for_element_displayed(*self._add_to_home_button_locator) self._root_element.find_element( *self._add_to_home_button_locator).tap() from gaiatest.apps.homescreen.regions.bookmark_menu import BookmarkMenu return BookmarkMenu(self.marionette)
def tap_add_bookmark_to_home_screen_choice_button(self): self.wait_for_element_displayed( *self._add_bookmark_to_home_screen_choice_locator) self.marionette.find_element( *self._add_bookmark_to_home_screen_choice_locator).tap() # TODO: Remove sleep when Bug # 815115 is addressed, or if we can wait for a Javascript condition time.sleep(1) return BookmarkMenu(self.marionette)
def tap_save_to_home_screen(self): self.wait_for_element_displayed(*self._modal_dialog_save_locator) self.marionette.find_element( *self._modal_dialog_save_locator).tap() return BookmarkMenu(self.marionette)
def tap_save_to_home_screen(self): element = Wait(self.marionette).until(expected.element_present( *self._modal_dialog_save_locator)) Wait(self.marionette).until(expected.element_displayed(element)) element.tap() return BookmarkMenu(self.marionette)
def tap_add_bookmark_to_home_screen_choice_button(self): self.wait_for_element_displayed(*self._add_bookmark_to_home_screen_choice_locator) self.marionette.find_element(*self._add_bookmark_to_home_screen_choice_locator).tap() return BookmarkMenu(self.marionette)