本文整理汇总了Python中gaiatest.apps.system.app.System.type_into_search_box方法的典型用法代码示例。如果您正苦于以下问题:Python System.type_into_search_box方法的具体用法?Python System.type_into_search_box怎么用?Python System.type_into_search_box使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.system.app.System
的用法示例。
在下文中一共展示了System.type_into_search_box方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_launch_rocketbar_search
# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import type_into_search_box [as 别名]
def test_launch_rocketbar_search(self):
# Tests a search with a common string.
# Asserts that the title and shortcuts are listed
test_string = u"News"
search_panel = System(self.marionette).tap_search_bar()
search_panel.type_into_search_box(test_string)
search_panel.wait_for_search_results_to_load(3)
self.assertGreater(len(search_panel.link_results), 0)
示例2: test_rocketbar_offline_behavior
# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import type_into_search_box [as 别名]
def test_rocketbar_offline_behavior(self):
"""
https://moztrap.mozilla.org/manage/case/14601/
"""
self.assertFalse(self.data_layer.is_wifi_connected())
self.assertFalse(self.data_layer.is_cell_data_enabled)
test_string = u'Test'
search_panel = System(self.marionette).tap_search_bar()
search_panel.type_into_search_box(test_string)
self.assertTrue(search_panel.is_offline_message_visible)
self.assertEqual(search_panel.offline_search_message, 'No internet connection')
settings = search_panel.tap_offline_settings_button()
settings.wait_for_airplane_mode_ready()
self.assertTrue(settings.is_cell_data_menu_visible)
self.assertTrue(settings.is_wifi_menu_visible)
self.assertTrue(settings.is_airplane_mode_displayed)