Ejemplo n.º 1
0
 def tap_switch_to_gallery(self):
     switch_to_gallery_button = self.marionette.find_element(*self._gallery_button_locator)
     switch_to_gallery_button.tap()
     from gaiatest.apps.gallery.app import Gallery
     gallery_app = Gallery(self.marionette)
     gallery_app.wait_to_be_displayed()
     self.apps.switch_to_displayed_app()
     return gallery_app
Ejemplo n.º 2
0
Archivo: app.py Proyecto: instoor/gaia
 def tap_switch_to_gallery(self):
     switch_to_gallery_button = self.marionette.find_element(
         *self._gallery_button_locator)
     switch_to_gallery_button.tap()
     from gaiatest.apps.gallery.app import Gallery
     gallery_app = Gallery(self.marionette)
     gallery_app.wait_to_be_displayed()
     self.apps.switch_to_displayed_app()
     return gallery_app
Ejemplo n.º 3
0
    def tap_switch_to_gallery(self):
        self.tap_options()
        self.marionette.find_element(*self._gallery_button_locator).tap()
        from gaiatest.apps.gallery.app import Gallery
        gallery_app = Gallery(self.marionette)
        gallery_app.wait_to_be_displayed()
        self.apps.switch_to_displayed_app()
        Wait(self.marionette).until(expected.element_displayed(*self._thumbnail_list_view_locator))

        return gallery_app
Ejemplo n.º 4
0
Archivo: app.py Proyecto: instoor/gaia
    def tap_switch_to_gallery(self):
        self.tap_options()
        self.marionette.find_element(*self._gallery_button_locator).tap()
        from gaiatest.apps.gallery.app import Gallery
        gallery_app = Gallery(self.marionette)
        gallery_app.wait_to_be_displayed()
        self.apps.switch_to_displayed_app()
        Wait(self.marionette).until(
            expected.element_displayed(*self._thumbnail_list_view_locator))

        return gallery_app
Ejemplo n.º 5
0
 def tap_gallery(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._gallery_button_locator).tap()
     Wait(self.marionette).until(
         expected.element_not_displayed(actions_menu))
     from gaiatest.apps.gallery.app import Gallery
     gallery = Gallery(self.marionette)
     gallery.wait_to_be_displayed()
     self.apps.switch_to_displayed_app()
     return gallery