當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。