本文整理汇总了Python中gaiatest.apps.gallery.app.Gallery.wait_for_thumbnail_view_to_load方法的典型用法代码示例。如果您正苦于以下问题:Python Gallery.wait_for_thumbnail_view_to_load方法的具体用法?Python Gallery.wait_for_thumbnail_view_to_load怎么用?Python Gallery.wait_for_thumbnail_view_to_load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.gallery.app.Gallery
的用法示例。
在下文中一共展示了Gallery.wait_for_thumbnail_view_to_load方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_gallery_delete_image
# 需要导入模块: from gaiatest.apps.gallery.app import Gallery [as 别名]
# 或者: from gaiatest.apps.gallery.app.Gallery import wait_for_thumbnail_view_to_load [as 别名]
def test_gallery_delete_image(self):
gallery = Gallery(self.marionette)
gallery.launch()
gallery.wait_for_files_to_load(3)
gallery_multi_view = gallery.switch_to_multiple_selection_view()
gallery_multi_view.select_nth_picture(0)
gallery_multi_view.select_nth_picture(1)
gallery_multi_view.select_nth_picture(2)
# Tap the delete button and confirm by default
gallery_multi_view.tap_delete_button()
gallery.wait_for_thumbnail_view_to_load()
# Verify empty gallery title.
Wait(self.marionette).until(lambda m: gallery.empty_gallery_title == 'No photos or videos')