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


Python ButtonGroup.choose方法代码示例

本文整理汇总了Python中cfme.web_ui.ButtonGroup.choose方法的典型用法代码示例。如果您正苦于以下问题:Python ButtonGroup.choose方法的具体用法?Python ButtonGroup.choose怎么用?Python ButtonGroup.choose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cfme.web_ui.ButtonGroup的用法示例。


在下文中一共展示了ButtonGroup.choose方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: set_grid_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
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)
开发者ID:petrblaho,项目名称:cfme_tests,代码行数:9,代码来源:test_stack.py

示例2: set_default_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
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)
开发者ID:prachiyadav,项目名称:cfme_tests,代码行数:9,代码来源:settings.py

示例3: test_containers_providers_default_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
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)
开发者ID:FilipB,项目名称:cfme_tests,代码行数:19,代码来源:test_containers_default_views.py

示例4: test_containers_providers_default_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
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)
开发者ID:jteehan,项目名称:cfme_tests,代码行数:21,代码来源:test_containers_default_views.py

示例5: reset_default_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
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)
开发者ID:amavinag,项目名称:cfme_tests,代码行数:8,代码来源:test_default_views_infra.py

示例6: set_exist_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
def set_exist_view(name):
    bg = ButtonGroup(name)
    if bg.active != 'Exists Mode':
        bg.choose('Exists Mode')
        sel.click(form_buttons.save)
开发者ID:amavinag,项目名称:cfme_tests,代码行数:7,代码来源:test_default_views_infra.py

示例7: set_details_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
def set_details_view(name):
    bg = ButtonGroup(name)
    if bg.active != 'Details Mode':
        bg.choose('Details Mode')
        sel.click(form_buttons.save)
开发者ID:amavinag,项目名称:cfme_tests,代码行数:7,代码来源:test_default_views_infra.py

示例8: set_compressed_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
def set_compressed_view(name):
    bg = ButtonGroup(name)
    if bg.active != 'Compressed View':
        bg.choose('Compressed View')
        sel.click(form_buttons.save)
开发者ID:amavinag,项目名称:cfme_tests,代码行数:7,代码来源:test_default_views_infra.py

示例9: set_expanded_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
def set_expanded_view(name):
    bg = ButtonGroup(name)
    if bg.active != 'Expanded View':
        bg.choose('Expanded View')
        sel.click(form_buttons.save)
开发者ID:amavinag,项目名称:cfme_tests,代码行数:7,代码来源:test_default_views_infra.py

示例10: set_grid_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
def set_grid_view(name):
    bg = ButtonGroup(name)
    if bg.active != 'Grid View':
        bg.choose('Grid View')
        sel.click(form_buttons.save)
开发者ID:amavinag,项目名称:cfme_tests,代码行数:7,代码来源:test_default_views_infra.py

示例11: set_list_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
def set_list_view(name):
    bg = ButtonGroup(name)
    if bg.active != 'List View':
        bg.choose('List View')
        sel.click(form_buttons.save)
开发者ID:amavinag,项目名称:cfme_tests,代码行数:7,代码来源:test_default_views_infra.py

示例12: set_tile_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
def set_tile_view(name):
    bg = ButtonGroup(name)
    if bg.active != 'Tile View':
        bg.choose('Tile View')
        sel.click(form_buttons.save)
开发者ID:amavinag,项目名称:cfme_tests,代码行数:7,代码来源:test_default_views_infra.py

示例13: set_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
def set_view(group, button):
    bg = ButtonGroup(group)
    if bg.active != button:
        bg.choose(button)
        sel.click(form_buttons.save)
开发者ID:kzvyahin,项目名称:cfme_tests,代码行数:7,代码来源:test_default_views_infra.py

示例14: set_default_view

# 需要导入模块: from cfme.web_ui import ButtonGroup [as 别名]
# 或者: from cfme.web_ui.ButtonGroup import choose [as 别名]
 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)
开发者ID:ManageIQ,项目名称:integration_tests,代码行数:8,代码来源:settings.py


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