当前位置: 首页>>代码示例>>Python>>正文


Python PageObject.wait_element方法代码示例

本文整理汇总了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')
开发者ID:Fiware,项目名称:ops.Fuel-main-dev,代码行数:9,代码来源:actions.py

示例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')
开发者ID:jcheyer,项目名称:fuel-main,代码行数:13,代码来源:test_support.py

示例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'
        )
开发者ID:Fiware,项目名称:ops.Fuel-main-dev,代码行数:16,代码来源:test_support.py

示例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')
开发者ID:Fiware,项目名称:ops.Fuel-main-dev,代码行数:8,代码来源:actions.py


注:本文中的pageobjects.base.PageObject.wait_element方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。