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


Python CheckboxTable.select_row_by_cells方法代碼示例

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


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

示例1: CheckboxTable

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row_by_cells [as 別名]
# -*- coding: utf-8 -*-
# added new list_tbl definition
from cfme.common import SummaryMixin, Taggable
from cfme.fixtures import pytest_selenium as sel
from cfme.web_ui import toolbar as tb, CheckboxTable
from cfme.web_ui.menu import nav
from . import details_page

list_tbl = CheckboxTable(table_locator="//div[@id='list_grid']//table")

nav.add_branch(
    'containers_replicators',
    {
        'containers_replicator':
        lambda ctx: list_tbl.select_row_by_cells(
            {'Name': ctx['replicator'].name, 'Provider': ctx['replicator'].provider.name}),

        'containers_replicator_detail':
        lambda ctx: list_tbl.click_row_by_cells(
            {'Name': ctx['replicator'].name, 'Provider': ctx['replicator'].provider.name}),
    }
)


class Replicator(Taggable, SummaryMixin):

    def __init__(self, name, provider):
        self.name = name
        self.provider = provider

    def _on_detail_page(self):
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:33,代碼來源:replicator.py

示例2: step

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row_by_cells [as 別名]
 def step(self, *args, **kwargs):
     check_table = CheckboxTable(table_locator="//div[@id='list_grid']//table")
     check_table.select_row_by_cells({'Name': self.obj.name,
                                      'Provider': self.obj.provider.name})
     cfg_btn('Edit selected Image')
開發者ID:ManageIQ,項目名稱:integration_tests,代碼行數:7,代碼來源:image.py

示例3: CheckboxTable

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row_by_cells [as 別名]
# -*- coding: utf-8 -*-
from cfme.common import SummaryMixin, Taggable
from cfme.fixtures import pytest_selenium as sel
from cfme.web_ui import CheckboxTable, toolbar as tb
from cfme.web_ui.menu import nav
from . import details_page

list_tbl = CheckboxTable(table_locator="//div[@id='list_grid']//table")

nav.add_branch(
    'containers_containers',
    {
        'containers_container':
        lambda ctx: list_tbl.select_row_by_cells(
            {'Name': ctx['container'].name, 'Pod Name': ctx['container'].pod.name}),

        'containers_container_detail':
        lambda ctx: list_tbl.click_row_by_cells(
            {'Name': ctx['container'].name, 'Pod Name': ctx['container'].pod.name}),
    }
)


class Container(Taggable, SummaryMixin):

    def __init__(self, name, pod):
        self.name = name
        self.pod = pod

    def _on_detail_page(self):
        return sel.is_displayed(
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:33,代碼來源:container.py

示例4: CheckboxTable

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row_by_cells [as 別名]
# -*- coding: utf-8 -*-
# added new list_tbl definition
from cfme.common import SummaryMixin, Taggable
from cfme.fixtures import pytest_selenium as sel
from cfme.web_ui import toolbar as tb, CheckboxTable
from cfme.web_ui.menu import nav
from . import details_page

list_tbl = CheckboxTable(table_locator="//div[@id='list_grid']//table")

nav.add_branch(
    'containers_services',
    {
        'containers_service':
        lambda ctx: list_tbl.select_row_by_cells(
            {'Name': ctx['service'].name, 'Provider': ctx['service'].provider.name}),

        'containers_service_detail':
        lambda ctx: list_tbl.click_row_by_cells(
            {'Name': ctx['service'].name, 'Provider': ctx['service'].provider.name}),
    }
)


class Service(Taggable, SummaryMixin):

    def __init__(self, name, provider):
        self.name = name
        self.provider = provider

    def _on_detail_page(self):
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:33,代碼來源:service.py

示例5: CheckboxTable

# 需要導入模塊: from cfme.web_ui import CheckboxTable [as 別名]
# 或者: from cfme.web_ui.CheckboxTable import select_row_by_cells [as 別名]
# -*- coding: utf-8 -*-
from cfme.common import SummaryMixin, Taggable
from cfme.fixtures import pytest_selenium as sel
from cfme.web_ui import CheckboxTable, toolbar as tb
from cfme.web_ui.menu import nav

list_tbl = CheckboxTable(table_locator="//div[@id='list_grid']//table")

nav.add_branch(
    'containers_image_registries',
    {
        'containers_image_registry':
        lambda ctx: list_tbl.select_row_by_cells(
            {'Host': ctx['image_registry'].host, 'Provider': ctx['image_registry'].provider.name}),

        'containers_image_registry_detail':
        lambda ctx: list_tbl.click_row_by_cells(
            {'Host': ctx['image_registry'].host, 'Provider': ctx['image_registry'].provider.name}),
    }
)


class ImageRegistry(Taggable, SummaryMixin):

    def __init__(self, host, provider):
        self.host = host
        self.provider = provider

    def load_details(self, refresh=False):
        if not self._on_detail_page():
            self.navigate(detail=True)
開發者ID:FilipB,項目名稱:cfme_tests,代碼行數:33,代碼來源:image_registry.py


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