本文整理匯總了Python中pageobjects.base.PageObject.find_element方法的典型用法代碼示例。如果您正苦於以下問題:Python PageObject.find_element方法的具體用法?Python PageObject.find_element怎麽用?Python PageObject.find_element使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pageobjects.base.PageObject
的用法示例。
在下文中一共展示了PageObject.find_element方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_bond_buttons_inactive
# 需要導入模塊: from pageobjects.base import PageObject [as 別名]
# 或者: from pageobjects.base.PageObject import find_element [as 別名]
def test_bond_buttons_inactive(self):
"""Check bond buttons are inactive by default
Scenario:
1. Verify bond and unbond buttons are disabled
"""
PageObject.find_element(InterfacesSettings(), 'bond_interfaces')
self.assertFalse(InterfacesSettings().bond_interfaces.is_enabled())
self.assertFalse(InterfacesSettings().unbond_interfaces.is_enabled())
示例2: test_stop_deploy
# 需要導入模塊: from pageobjects.base import PageObject [as 別名]
# 或者: from pageobjects.base.PageObject import find_element [as 別名]
def test_stop_deploy(self):
"""Stop deploy
Scenario:
1. Add controller and compute nodes
2. Click deploy
3. Click stop
4. Verify that environment isn't deployed
"""
Tabs().nodes.click()
Nodes().add_controller_compute_nodes()
Nodes().deploy_changes.click()
DeployChangesPopup().deploy.click()
Actions().cancel_popup.click()
Actions().stop_deploy_process()
PageObject.find_element(Nodes(), 'nodes', 'status', 0)
for node in Nodes().nodes:
self.assertEqual(
'pending addition', node.status.text.lower(),
'Node status is Pending Addition')
self.assertTrue(Nodes().deploy_changes.is_enabled())