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