class smart_class_parameter(SatTab): TAB_NAME = 'Smart Class Parameter' filter = TextInput(locator="//input[@placeholder='Filter by name']") environment_filter = FilteredDropdown(id='environment_filter') parameter_list = ItemsList("//div[@id='smart_class_param']" "//ul[contains(@class, 'smart-var-tabs')]") parameter = SmartClassParameterContent( locator="//div[@id='smart_class_param']" "//div[@class='tab-pane fields active']")
class TemplateEditor(View): """Default view for template entity editor that can be present for example on provisioning template of partition table pages. It contains from different options of content rendering and ace editor where you can actually provide your inputs Usage:: editor = View.nested(TemplateEditor) """ ROOT = ".//div[@id='editor-container']" rendering_options = ItemsList(".//div[contains(@class,'navbar-editor')]/ul") import_template = Button(id='import-btn') fullscreen = Button(id='fullscreen-btn') editor = ACEEditor()
class details(SatTab): advisory = ReadOnlyEntry(name='Advisory') cves = ReadOnlyEntry(name='CVEs') type = ReadOnlyEntry(name='Type') severity = ReadOnlyEntry(name='Severity') issued = ReadOnlyEntry(name='Issued') last_updated_on = ReadOnlyEntry(name='Last Updated On') reboot_suggested = ReadOnlyEntry(name='Reboot Suggested?') topic = Text( ".//h3[contains(., 'Topic')]" "/following-sibling::p[contains(@class, 'info-paragraph')][1]" ) description = Text( ".//h3[contains(., 'Description')]" "/following-sibling::p[contains(@class, 'info-paragraph')][1]" ) solution = Text( ".//h3[contains(., 'Solution')]" "/following-sibling::p[contains(@class, 'info-paragraph')][1]" ) affected_packages = ItemsList( ".//h3[contains(., 'Affected Packages')]/following-sibling::ul")
class packages(SatTab): independent_packages = ItemsList( ".//h3[contains(., 'Independent Packages')]/following-sibling::ul") module_stream_packages = ItemsList( ".//h3[contains(., 'Module Stream Packages')]/following-sibling::ul" )