Exemplo n.º 1
0
class ControlImportExportView(BaseLoggedInPage):

    upload_button = InputButton("commit")
    export_button = Button("Export")
    commit_button = Button("Commit")

    upload_file = FileInput(name="upload[file]")
    export = BootstrapSelect("dbtype")
    policy_profiles = Select(id="choices_chosen_")

    @property
    def is_displayed(self):
        return (self.logged_in_as_current_user
                and self.navigation.currently_selected
                == ["Control", "Import / Export"])
Exemplo n.º 2
0
class ImportExportWidgetsView(CloudIntelReportsView):
    title = Text("#explorer_title_text")
    subtitle = Text(locator=".//div[@id='main_div']/h2")

    upload_file = FileInput(id="upload_file")
    upload_button = InputButton("commit")

    items_for_export = Select(id="widgets_")
    export_button = Button(value="Export")

    @property
    def is_displayed(self):
        return (self.in_intel_reports and self.title.text == "Import / Export"
                and self.subtitle.text == "Widgets"
                and self.import_export.tree.currently_selected
                == ["Import / Export", "Widgets"])
Exemplo n.º 3
0
class ImportExportCustomReportsView(CloudIntelReportsView):
    title = Text("#explorer_title_text")
    subtitle = Text(locator=".//div[@id='main_div']/h2")

    upload_file = FileInput(id="upload_file")
    upload_button = InputButton("commit")

    overwrite = Checkbox("overwrite")
    preserve_owner = Checkbox("preserve_owner")

    items_for_export = Select(id="choices_chosen")
    export_button = Button(id="export_button")

    @property
    def is_displayed(self):
        return (self.in_intel_reports and self.title.text == "Import / Export"
                and self.subtitle.text == "Custom Reports"
                and self.import_export.tree.currently_selected
                == ["Import / Export", "Custom Reports"])
Exemplo n.º 4
0
class DetailsEntitiesCatalogItemView(View):
    upload_image = FileInput(id="upload_image")
    upload_button = InputButton("commit")
    remove = Button(title="Remove this Custom Image")
    smart_management = SummaryTable("Smart Management")