class ApplicationsPage(RootPage): PAGE_MENU = MENU.APPLICATIONS.text namespace = NamespaceFilter() filter = Filter() sort = SortBar() duration = DropDown(locator=XP_DROP_DOWN.format('time_range_duration')) interval = DropDown(locator=XP_DROP_DOWN.format('time_range_refresh')) refresh = Button(locator=REFRESH_BUTTON) content = ListViewApplications()
class OverviewPage(RootPage): PAGE_MENU = MENU.OVERVIEW.text filter = Filter() sort = SortDropDown(locator=SORT_DROP_DOWN.format('sort_selector')) type = TypeDropDown(locator=XP_DROP_DOWN.format('overview-type')) duration = DropDown(locator=XP_DROP_DOWN.format('time_range_duration')) interval = DropDown(locator=XP_DROP_DOWN.format('time_range_refresh')) refresh = Button(locator=REFRESH_BUTTON) content = ListViewOverview()
class GraphPage(RootPage): PAGE_MENU = MENU.GRAPH.text namespace = DropDown(locator=XP_DROP_DOWN.format('namespace-selector')) duration = DropDown( locator=XP_DROP_DOWN.format('graph_filter_interval_duration')) layout = DropDown(locator=XP_DROP_DOWN.format('graph_filter_layouts')) edge_labels = DropDown(locator=XP_DROP_DOWN.format('graph_filter_edges')) filter = CheckBoxFilter() refresh = Button(locator='.//button//*[contains(@class, "fa-refresh")]')
class ServicesPage(RootPage): PAGE_MENU = MENU.SERVICES.text namespace = NamespaceFilter() filter = Filter() sort = SortBar() duration = DropDown(locator=XP_DROP_DOWN.format('time_range_duration')) interval = DropDown(locator=XP_DROP_DOWN.format('time_range_refresh')) refresh = Button(locator=REFRESH_BUTTON) actions = Actions() content = ListViewServices()
class ServicesPage(RootPage): PAGE_MENU = MENU.SERVICES.text filter = Filter() sort = SortDropDown(locator=XP_DROP_DOWN.format('sortTypeMenu')) rate_interval = DropDown( locator=XP_DROP_DOWN.format('rateIntervalDropDown')) content = ListViewServices() pagination = Pagination()
class GraphPage(RootPage): PAGE_MENU = MENU.GRAPH.text namespace = NamespaceFilter() duration = ItemDropDown(locator=XP_DROP_DOWN.format('time_range_duration')) interval = ItemDropDown(locator=XP_DROP_DOWN.format('time_range_refresh')) edge_labels = DropDown(locator=XP_DROP_DOWN.format('graph_filter_edge_labels')) type = ItemDropDown(locator=XP_DROP_DOWN.format('graph_filter_view_type')) graph_find = FilterInput(locator='//input[@id="graph_find"]') graph_hide = FilterInput(locator='//input[@id="graph_hide"]') layout = GraphLayout() filter = GraphDisplayFilter("Display") refresh = Button(locator=REFRESH_BUTTON) side_panel = GraphSidePanel()