コード例 #1
0
ファイル: common.py プロジェクト: ATIX-AG/airgun
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[@class='editor-container']"
    rendering_options = ToggleRadioGroup(".//div[@class='btn-group']")
    import_template = Text(".//a[normalize-space(.)='Import']")
    fullscreen = Text(".//a[normalize-space(.)='Fullscreen']")
    syntax_type = Select(id='mode')
    key_binding = Select(id='keybinding')
    editor = ACEEditor()
コード例 #2
0
class TemplateHostEnvironmentAssociation(GenericRemovableWidgetItem):
    """Provisioning Template Foreign Input Set Item widget"""
    remove_button = Text(".//a[@title='Remove Combination']")
    host_group = Select(locator=".//select[contains(@name, '[hostgroup_id]')]")
    environment = Select(
        locator=".//select[contains(@name, '[environment_id]')]")