Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 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