本文整理汇总了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())