本文整理汇总了Python中pageobjects.base.PageObject.wait_element方法的典型用法代码示例。如果您正苦于以下问题:Python PageObject.wait_element方法的具体用法?Python PageObject.wait_element怎么用?Python PageObject.wait_element使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pageobjects.base.PageObject
的用法示例。
在下文中一共展示了PageObject.wait_element方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: reset_env
# 需要导入模块: from pageobjects.base import PageObject [as 别名]
# 或者: from pageobjects.base.PageObject import wait_element [as 别名]
def reset_env(cls):
PageObject.click_element(Actions(), 'reset')
PageObject.wait_element(Actions(), 'reset_popup')
time.sleep(2)
PageObject.click_element(Actions(), 'reset_popup')
PageObject.click_element(Tabs(), 'nodes')
PageObject.long_wait_element(Actions(), 'pending_nodes')
示例2: test_diagnostic_snapshot
# 需要导入模块: from pageobjects.base import PageObject [as 别名]
# 或者: from pageobjects.base.PageObject import wait_element [as 别名]
def test_diagnostic_snapshot(self):
"""Generate diagnostic snapshot
Scenario:
1. Click generate diagnostic snapshot
2. Verify that snapshot is available to download
"""
Support().generate_snapshot.click()
with Support() as s:
PageObject.wait_element(s, "download_snapshot")
self.assertTrue(s.download_snapshot.is_enabled(), '"Diagnostic Snapshot" is displayed')
示例3: test_capacity_audit
# 需要导入模块: from pageobjects.base import PageObject [as 别名]
# 或者: from pageobjects.base.PageObject import wait_element [as 别名]
def test_capacity_audit(self):
"""View capacity audit
Scenario:
1. Click view capacity audit
2. Verify that system information is present
"""
Support().view_capacity_audit.click()
PageObject.wait_element(Support(), 'capacity_report')
self.assertEqual(
'Home/Support/Capacity',
Header().breadcrumb.text,
'Breadcrumb text'
)
示例4: stop_deploy_process
# 需要导入模块: from pageobjects.base import PageObject [as 别名]
# 或者: from pageobjects.base.PageObject import wait_element [as 别名]
def stop_deploy_process(cls):
PageObject.click_element(Actions(), 'stop_deploy')
PageObject.wait_element(Actions, "stop_deploy_popup")
PageObject.click_element(Actions(), 'stop_deploy_popup')
PageObject.click_element(Tabs(), 'nodes')
PageObject.long_wait_element(Actions(), 'pending_nodes')