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')
# -*- 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):
# -*- 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_images', { 'containers_image': lambda ctx: list_tbl.select_row_by_cells( { 'Name': ctx['image'].name, 'Provider': ctx['image'].provider.name }), 'containers_image_detail': lambda ctx: list_tbl.click_row_by_cells( { 'Name': ctx['image'].name, 'Provider': ctx['image'].provider.name }), }) class Image(Taggable, SummaryMixin): def __init__(self, name, provider): self.name = name self.provider = provider
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')
# -*- 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
# -*- 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):
# -*- 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(
# -*- 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)