class puppet_enc(SatTab): TAB_NAME = 'Puppet ENC' config_groups = ConfigGroupMultiSelect(locator='.') classes = PuppetClassesMultiSelect(locator='.') puppet_class_parameters = Table( ".//table[@id='puppet_klasses_parameters_table']", column_widgets={'Value': PuppetClassParameterValue()}, )
class ConfigGroupCreateView(BaseLoggedInView): breadcrumb = BreadCrumb() name = TextInput(id='config_group_name') submit = Text('//input[@name="commit"]') classes = PuppetClassesMultiSelect(locator='.//form') @property def is_displayed(self): breadcrumb_loaded = self.browser.wait_for_element(self.breadcrumb, exception=False) return (breadcrumb_loaded and self.breadcrumb.locations[0] == 'Config Groups' and self.breadcrumb.locations[1] == 'Create Config Group')
class puppet_classes(SatTab): TAB_NAME = 'Puppet Classes' config_groups = ConfigGroupMultiSelect(locator='.') classes = PuppetClassesMultiSelect(locator='.')