本文整理汇总了Python中gaiatest.apps.system.app.System.wait_for_data_to_be_connected方法的典型用法代码示例。如果您正苦于以下问题:Python System.wait_for_data_to_be_connected方法的具体用法?Python System.wait_for_data_to_be_connected怎么用?Python System.wait_for_data_to_be_connected使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.system.app.System
的用法示例。
在下文中一共展示了System.wait_for_data_to_be_connected方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_cell_data_for_one_sim_in_dsds_device
# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_data_to_be_connected [as 别名]
def test_cell_data_for_one_sim_in_dsds_device(self):
"""
https://moztrap.mozilla.org/manage/case/1373/
"""
settings = Settings(self.marionette)
settings.launch()
cell_and_data_settings = settings.open_cell_and_data_dual_sim()
self.assertNotEqual(cell_and_data_settings.carrier_name, '')
cell_data_prompt = cell_and_data_settings.enable_data()
cell_data_prompt.turn_on()
self.wait_for_condition(lambda m: cell_and_data_settings.is_data_toggle_checked)
status_bar = System(self.marionette).status_bar.minimized
status_bar.wait_for_data_to_be_connected()
示例2: test_enable_cell_data_via_settings_app
# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_data_to_be_connected [as 别名]
def test_enable_cell_data_via_settings_app(self):
"""
https://moztrap.mozilla.org/manage/case/1373/
"""
settings = Settings(self.marionette)
settings.launch()
cell_and_data_settings = settings.open_cell_and_data()
self.assertNotEqual(cell_and_data_settings.carrier_name, '')
self.assertFalse(cell_and_data_settings.is_data_toggle_checked)
cell_data_prompt = cell_and_data_settings.enable_data()
self.assertTrue(cell_and_data_settings.is_data_toggle_checked)
cell_data_prompt.turn_on()
status_bar = System(self.marionette).status_bar.minimized
status_bar.wait_for_data_to_be_connected()