def tap_wallpaper(self): self.marionette.find_element(*self._wallpaper_button_locator).tap() self.wait_for_element_not_displayed(*self._actions_menu_locator) from gaiatest.apps.wallpaper.app import Wallpaper wallpaper = Wallpaper(self.marionette) wallpaper.switch_to_wallpaper_frame() return wallpaper
def tap_wallpaper(self): Wait(self.marionette).until( expected.element_displayed(*self._actions_menu_locator)) self.marionette.find_element(*self._wallpaper_button_locator).tap() Wait(self.marionette).until( expected.element_not_displayed(*self._actions_menu_locator)) from gaiatest.apps.wallpaper.app import Wallpaper wallpaper = Wallpaper(self.marionette) wallpaper.wait_to_be_displayed() self.apps.switch_to_displayed_app() return wallpaper
def tap_wallpaper(self): self.marionette.find_element(*self._wallpaper_button_locator).tap() self.wait_for_element_not_displayed(*self._actions_menu_locator) from gaiatest.apps.wallpaper.app import Wallpaper wallpaper = Wallpaper(self.marionette) self.wait_for_condition(lambda m: self.apps.displayed_app.name == wallpaper.name) self.apps.switch_to_displayed_app() return wallpaper
def tap_wallpaper(self): self.marionette.find_element(*self._wallpaper_button_locator).tap() from gaiatest.apps.wallpaper.app import Wallpaper wallpaper = Wallpaper(self.marionette) wallpaper.switch_to_wallpaper_frame() return wallpaper