當前位置: 首頁>>代碼示例>>Python>>正文


Python CheckboxTable.select_row方法代碼示例

本文整理匯總了Python中cfme.web_ui.CheckboxTable.select_row方法的典型用法代碼示例。如果您正苦於以下問題:Python CheckboxTable.select_row方法的具體用法?Python CheckboxTable.select_row怎麽用?Python CheckboxTable.select_row使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在cfme.web_ui.CheckboxTable的用法示例。


在下文中一共展示了CheckboxTable.select_row方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: None

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row [as 別名]
        provider.summary.reload()
        if provider.summary.relationships.middleware_servers.value == 0:
            return
        provider.summary.relationships.middleware_servers.click()
    elif server_group:
        # if server group instance is provided navigate through it's servers page
        server_group.summary.reload()
        if server_group.summary.relationships.middleware_servers.value == 0:
            return
        server_group.summary.relationships.middleware_servers.click()
    else:  # if None(provider) given navigate through all middleware servers page
        sel.force_navigate('middleware_servers')

nav.add_branch(
    'middleware_servers', {
        'middleware_server': lambda ctx: list_tbl.select_row('Server Name', ctx['name']),
    }
)

timeout_form = Form(
    fields=[
        ("timeout", Input("timeout", use_id=True)),
        ('suspend_button', FormButton("Suspend")),
        ('shutdown_button', FormButton("Shutdown")),
        ('cancel_button', FormButton("Cancel"))
    ]
)


class MiddlewareServer(MiddlewareBase, Taggable, Container):
    """
開發者ID:RonnyPfannschmidt,項目名稱:cfme_tests,代碼行數:33,代碼來源:server.py

示例2: None

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row [as 別名]
    if server:  # if server instance is provided navigate through server page
        server.summary.reload()
        if server.summary.relationships.middleware_deployments.value == 0:
            return
        server.summary.relationships.middleware_deployments.click()
    elif provider:  # if provider instance is provided navigate through provider page
        provider.summary.reload()
        if provider.summary.relationships.middleware_deployments.value == 0:
            return
        provider.summary.relationships.middleware_deployments.click()
    else:  # if None(provider and server) given navigate through all middleware deployments page
        sel.force_navigate('middleware_deployments')

nav.add_branch(
    'middleware_deployments', {
        'middleware_deployment': lambda ctx: list_tbl.select_row('Deployment Name', ctx['name']),
    }
)


class MiddlewareDeployment(MiddlewareBase):
    """
    MiddlewareDeployment class provides details on deployment page.
    Class methods available to get existing deployments list

    Args:
        name: Name of the deployment
        provider: Provider object (HawkularProvider)
        server: Server object of the deployment (MiddlewareServer)
        nativeid: Native id (internal id) of deployment
開發者ID:chessbyte,項目名稱:integration_tests,代碼行數:32,代碼來源:deployment.py

示例3: cfmedb

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row [as 別名]
    query = cfmedb().session.query(t_mds.nativeid, t_mds.name,
                                   t_mds.ems_ref, t_ms.name, t_ems.name,
                                   t_mds.properties).join(t_ms,
                                            t_mds.server_id == t_ms.id).join(t_ems,
                                            t_mds.ems_id == t_ems.id)
    if name:
        query = query.filter(t_mds.name == name)
    if server:
        query = query.filter(t_mds.nativeid.like('%{}%'.format(server)))
    if provider:
        query = query.filter(t_ems.name == provider)
    return query

nav.add_branch(
    'middleware_datasources', {
        'middleware_datasource': lambda ctx: list_tbl.select_row('Datasource Name', ctx['name']),
        'middleware_datasource_detail':
            lambda ctx: list_tbl.click_row_by_cells({'Datasource Name': ctx['name']}),
    }
)


class MiddlewareDatasource(MiddlewareBase, Taggable):
    """
    MiddlewareDatasource class provides details on datasource page.
    Class methods available to get existing datasources list

    Args:
        name: Name of the datasource
        provider: Provider object (HawkularProvider)
        id: Native id (internal id) of datasource
開發者ID:MattLombana,項目名稱:cfme_tests,代碼行數:33,代碼來源:datasource.py

示例4: None

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row [as 別名]
    if server:  # if server instance is provided navigate through server page
        server.summary.reload()
        if server.summary.relationships.middleware_deployments.value == 0:
            return
        server.summary.relationships.middleware_deployments.click()
    elif provider:  # if provider instance is provided navigate through provider page
        provider.summary.reload()
        if provider.summary.relationships.middleware_deployments.value == 0:
            return
        provider.summary.relationships.middleware_deployments.click()
    else:  # if None(provider and server) given navigate through all middleware deployments page
        sel.force_navigate("middleware_deployments")


nav.add_branch(
    "middleware_deployments", {"middleware_deployment": lambda ctx: list_tbl.select_row("Deployment Name", ctx["name"])}
)


class MiddlewareDeployment(MiddlewareBase, Taggable, Deployable):
    """
    MiddlewareDeployment class provides details on deployment page.
    Class methods available to get existing deployments list

    Args:
        name: Name of the deployment
        provider: Provider object (HawkularProvider)
        server: Server object of the deployment (MiddlewareServer)
        nativeid: Native id (internal id) of deployment
        db_id: database row id of deployment
開發者ID:anewmanRH,項目名稱:cfme_tests,代碼行數:32,代碼來源:deployment.py

示例5: CheckboxTable

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row [as 別名]
from cfme.fixtures import pytest_selenium as sel
from utils.varmeth import variable
from . import cfg_btn, mon_btn, pol_btn, LIST_TABLE_LOCATOR, MiddlewareBase

list_tbl = CheckboxTable(table_locator=LIST_TABLE_LOCATOR)

details_page = Region(infoblock_type='detail')

nav.add_branch(
    'middleware_providers',
    {
        'middleware_provider_new':
            lambda _: cfg_btn('Add a New Middleware Provider'),
        'middleware_provider':
        [
            lambda ctx: list_tbl.select_row('name', ctx['provider'].name),
            {
                'middleware_provider_edit':
                lambda _: cfg_btn('Edit Selected Middleware Provider'),
                'middleware_provider_edit_tags':
                lambda _: pol_btn('Edit Tags')
            }],
        'middleware_provider_detail':
        [
            lambda ctx: list_tbl.click_cells({'name': ctx['provider'].name}),
            {
                'middleware_provider_edit_detail':
                lambda _: cfg_btn('Edit this Middleware Provider'),
                'middleware_provider_timelines_detail':
                lambda _: mon_btn('Timelines'),
                'middleware_provider_edit_tags_detail':
開發者ID:MattLombana,項目名稱:cfme_tests,代碼行數:33,代碼來源:provider.py

示例6: None

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row [as 別名]
        server.summary.reload()
        if server.summary.relationships.middleware_messagings.value == 0:
            return
        server.summary.relationships.middleware_messagings.click()
    elif provider:  # if provider instance is provided navigate through provider page
        provider.summary.reload()
        if provider.summary.relationships.middleware_messagings.value == 0:
            return
        provider.summary.relationships.middleware_messagings.click()
    else:  # if None(provider and server) given navigate through all middleware messagings page
        sel.force_navigate('middleware_messagings')


nav.add_branch(
    'middleware_messagings', {
        'middleware_messaging': lambda ctx: list_tbl.select_row('Messaging Name', ctx['name']),
    }
)


class MiddlewareMessaging(MiddlewareBase, Taggable):
    """
    MiddlewareMessaging class provides details on messaging page.
    Class methods available to get existing messagings list

    Args:
        name: Name of the messaging
        provider: Provider object (HawkularProvider)
        nativeid: Native id (internal id) of messaging
        server: Server object of the messaging (MiddlewareServer)
        properties: Messaging providers
開發者ID:rrasouli,項目名稱:cfme_tests,代碼行數:33,代碼來源:messaging.py

示例7: _get_domains_page

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row [as 別名]
        query = query.filter(t_ems.name == provider.name)
    return query


def _get_domains_page(provider):
    if provider:  # if provider instance is provided navigate through provider's domains page
        provider.summary.reload()
        if provider.summary.relationships.middleware_domains.value == 0:
            return
        provider.summary.relationships.middleware_domains.click()
    else:  # if None(provider) given navigate through all middleware domains page
        sel.force_navigate('middleware_domains')

nav.add_branch(
    'middleware_domains', {
        'middleware_domain': lambda ctx: list_tbl.select_row('Domain Name', ctx['name']),
    }
)


class MiddlewareDomain(MiddlewareBase, Taggable):
    """
    MiddlewareDomain class provides actions and details on Domain page.
    Class method available to get existing domains list

    Args:
        name: name of the domain
        provider: Provider object (HawkularProvider)
        product: Product type of the domain
        feed: feed of the domain
        db_id: database row id of domain
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:33,代碼來源:domain.py


注:本文中的cfme.web_ui.CheckboxTable.select_row方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。