本文整理汇总了Python中gaiatest.apps.system.app.System.wait_for_software_home_button_displayed方法的典型用法代码示例。如果您正苦于以下问题:Python System.wait_for_software_home_button_displayed方法的具体用法?Python System.wait_for_software_home_button_displayed怎么用?Python System.wait_for_software_home_button_displayed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.system.app.System
的用法示例。
在下文中一共展示了System.wait_for_software_home_button_displayed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestSoftwareButtonsVisibilityAccessibility
# 需要导入模块: from gaiatest.apps.system.app import System [as 别名]
# 或者: from gaiatest.apps.system.app.System import wait_for_software_home_button_displayed [as 别名]
class TestSoftwareButtonsVisibilityAccessibility(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.system = System(self.marionette)
def test_a11y_software_buttons_visibility(self):
self.assertTrue(self.accessibility.is_hidden(self.marionette.find_element(
*self.system._software_home_button_locator)))
# Enable software button visibility
self.data_layer.set_setting('software-button.enabled', True)
# # Software buttons should now be visible
self.system.wait_for_software_home_button_displayed()
self.assertTrue(self.accessibility.is_visible(self.marionette.find_element(
*self.system._software_home_button_locator)))
# # Disable software button visibility
self.data_layer.set_setting('software-button.enabled', False)
# # Software buttons should now be invisible
self.system.wait_for_software_home_button_not_displayed()
self.assertTrue(self.accessibility.is_hidden(self.marionette.find_element(
*self.system._software_home_button_locator)))