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