本文整理汇总了Python中cfme.web_ui.ButtonGroup类的典型用法代码示例。如果您正苦于以下问题:Python ButtonGroup类的具体用法?Python ButtonGroup怎么用?Python ButtonGroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ButtonGroup类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set_grid_view
def set_grid_view(name):
bg = ButtonGroup(name)
sel.force_navigate("my_settings_default_views")
default_view = bg.active
if(default_view != 'Grid View'):
bg.choose('Grid View')
sel.click(form_buttons.save)
示例2: set_default_view
def set_default_view(button_group_name, view):
bg = ButtonGroup(button_group_name)
sel.force_navigate("my_settings_default_views")
default_view = bg.active
if(default_view != view):
bg.choose(view)
sel.click(form_buttons.save)
示例3: test_containers_providers_default_view
def test_containers_providers_default_view(button_group, view):
""" Containers Providers/Projects/Routes/Nodes/Containers/Replicators default view test
This test checks successful change of default views settings for Containers -->
Providers/Projects/Routes/Nodes/Containers/Replicators menu
Steps:
* Goes to Settings --> My Settings --> Default Views menu and change the default view
settings of Containers --> Containers Providers/Projects/Routes/Nodes
/Containers/Replicators
to Grid/Tile/List view
* Goes to Compute --> Containers --> Providers and verifies the selected view
"""
sel.force_navigate('my_settings_default_views')
bg = ButtonGroup(button_group)
bg.choose(view)
sel.click(form_buttons.save)
sel.force_navigate(mapping[button_group])
assert tb.is_active(view), "{}'s {} setting failed".format(view, button_group)
示例4: test_containers_providers_default_view
def test_containers_providers_default_view(button_group, view):
""" Containers Providers/Projects/Routes/Nodes/Containers/Replicators default view test
This test checks successful change of default views settings for Containers -->
Providers/Projects/Routes/Nodes/Containers/Replicators menu
Steps:
* Goes to Settings --> My Settings --> Default Views menu and change the default view
settings of Containers --> Containers Providers/Projects/Routes/Nodes
/Containers/Replicators
to Grid/Tile/List view
* Goes to Compute --> Containers --> Providers and verifies the selected view
"""
navigate_to(Server, 'MySettings')
tabs.select_tab("Default Views")
bg = ButtonGroup(button_group)
if not bg.active == str(view):
bg.choose(view)
sel.click(form_buttons.save)
navigate_to(mapping[button_group], 'All', use_resetter=False)
assert tb.is_active(view), "{}'s {} setting failed".format(view, button_group)
示例5: reset_default_view
def reset_default_view(name, default_view):
bg = ButtonGroup(name)
sel.force_navigate("my_settings_default_views")
if bg.active != default_view:
bg.choose(default_view)
sel.click(form_buttons.save)
示例6: set_exist_view
def set_exist_view(name):
bg = ButtonGroup(name)
if bg.active != 'Exists Mode':
bg.choose('Exists Mode')
sel.click(form_buttons.save)
示例7: set_details_view
def set_details_view(name):
bg = ButtonGroup(name)
if bg.active != 'Details Mode':
bg.choose('Details Mode')
sel.click(form_buttons.save)
示例8: set_compressed_view
def set_compressed_view(name):
bg = ButtonGroup(name)
if bg.active != 'Compressed View':
bg.choose('Compressed View')
sel.click(form_buttons.save)
示例9: set_expanded_view
def set_expanded_view(name):
bg = ButtonGroup(name)
if bg.active != 'Expanded View':
bg.choose('Expanded View')
sel.click(form_buttons.save)
示例10: set_grid_view
def set_grid_view(name):
bg = ButtonGroup(name)
if bg.active != 'Grid View':
bg.choose('Grid View')
sel.click(form_buttons.save)
示例11: set_list_view
def set_list_view(name):
bg = ButtonGroup(name)
if bg.active != 'List View':
bg.choose('List View')
sel.click(form_buttons.save)
示例12: set_tile_view
def set_tile_view(name):
bg = ButtonGroup(name)
if bg.active != 'Tile View':
bg.choose('Tile View')
sel.click(form_buttons.save)
示例13: set_view
def set_view(group, button):
bg = ButtonGroup(group)
if bg.active != button:
bg.choose(button)
sel.click(form_buttons.save)
示例14: set_default_view
def set_default_view(cls, button_group_name, default):
bg = ButtonGroup(button_group_name)
navigate_to(cls, 'All')
if bg.active != default:
bg.choose(default)
sel.click(form_buttons.save)