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