本文整理汇总了Python中gaiatest.apps.gallery.app.Gallery.switch_to_gallery_frame方法的典型用法代码示例。如果您正苦于以下问题:Python Gallery.switch_to_gallery_frame方法的具体用法?Python Gallery.switch_to_gallery_frame怎么用?Python Gallery.switch_to_gallery_frame使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.gallery.app.Gallery
的用法示例。
在下文中一共展示了Gallery.switch_to_gallery_frame方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tap_gallery
# 需要导入模块: from gaiatest.apps.gallery.app import Gallery [as 别名]
# 或者: from gaiatest.apps.gallery.app.Gallery import switch_to_gallery_frame [as 别名]
def tap_gallery(self):
self.marionette.find_element(*self._gallery_button_locator).tap()
self.wait_for_element_not_displayed(*self._actions_menu_locator)
from gaiatest.apps.gallery.app import Gallery
gallery = Gallery(self.marionette)
gallery.switch_to_gallery_frame()
return gallery
示例2: tap_gallery
# 需要导入模块: from gaiatest.apps.gallery.app import Gallery [as 别名]
# 或者: from gaiatest.apps.gallery.app.Gallery import switch_to_gallery_frame [as 别名]
def tap_gallery(self):
self.marionette.find_element(*self._gallery_button_locator).tap()
from gaiatest.apps.gallery.app import Gallery
gallery = Gallery(self.marionette)
gallery.switch_to_gallery_frame()
return gallery