当前位置: 首页>>代码示例>>Python>>正文


Python Gallery.wait_to_be_displayed方法代码示例

本文整理汇总了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
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:10,代码来源:app.py

示例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
开发者ID:Archaeopteryx,项目名称:gaia,代码行数:15,代码来源:activities.py


注:本文中的gaiatest.apps.gallery.app.Gallery.wait_to_be_displayed方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。