本文整理汇总了Python中gaiatest.apps.system.regions.cards_view.CardsView.swipe_to_next_app方法的典型用法代码示例。如果您正苦于以下问题:Python CardsView.swipe_to_next_app方法的具体用法?Python CardsView.swipe_to_next_app怎么用?Python CardsView.swipe_to_next_app使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.system.regions.cards_view.CardsView
的用法示例。
在下文中一共展示了CardsView.swipe_to_next_app方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_that_app_can_be_launched_from_cards_view
# 需要导入模块: from gaiatest.apps.system.regions.cards_view import CardsView [as 别名]
# 或者: from gaiatest.apps.system.regions.cards_view.CardsView import swipe_to_next_app [as 别名]
def test_that_app_can_be_launched_from_cards_view(self):
# https://bugzilla.mozilla.org/show_bug.cgi?id=943338
cards_view = CardsView(self.marionette)
self.assertFalse(cards_view.is_cards_view_displayed, 'Cards view not expected to be visible')
# Pull up the cards view
cards_view.open_cards_view()
for app in self._test_apps:
self.assertTrue(cards_view.is_app_displayed(app),
'%s app should be visible in cards view' % app)
cards_view.swipe_to_next_app()
cards_view.tap_app(self._test_apps[0])
cards_view.wait_for_cards_view_not_displayed()
self.assertEqual(self.apps.displayed_app.name, self._test_apps[0])
示例2: test_that_app_can_be_launched_from_cards_view
# 需要导入模块: from gaiatest.apps.system.regions.cards_view import CardsView [as 别名]
# 或者: from gaiatest.apps.system.regions.cards_view.CardsView import swipe_to_next_app [as 别名]
def test_that_app_can_be_launched_from_cards_view(self):
"""https://moztrap.mozilla.org/manage/case/2462/"""
cards_view = CardsView(self.marionette)
self.assertFalse(cards_view.is_cards_view_displayed, 'Cards view not expected to be visible')
# Pull up the cards view
self.device.hold_home_button()
cards_view.wait_for_cards_view()
for app in self._test_apps:
self.assertTrue(cards_view.is_app_displayed(app),
'%s app should be visible in cards view' % app)
cards_view.swipe_to_next_app()
cards_view.tap_app(self._test_apps[0])
cards_view.wait_for_cards_view_not_displayed()
self.assertEqual(self.apps.displayed_app.name, self._test_apps[0])