class AutomateImportExportView(AutomateImportExportBaseView): class import_file(View): # noqa file = FileInput(name='upload_file') upload = Button('Upload') class import_git(View): # noqa ROOT = './/form[@id="retrieve-git-datastore-form"]' url = Input(name='git_url') username = Input(name='git_username') password = Input(name='git_password') verify_ssl = Checkbox(name='git_verify_ssl') submit = Button(id='git-url-import') export_all = VersionPick({ Version.lowest(): Image('.//input[@title="Export all classes and instances"]'), '5.10': Button(title='Export all classes and instances') }) reset_all = VersionPick({ Version.lowest(): Image( './/img[starts-with(@alt, "Reset all components in the following domains:")]'), '5.10': Button(title='Reset all components in the following domains:') }) @property def is_displayed(self): return self.in_import_export and self.export_all.is_displayed
class ElementForm(AddBoxView): ele_label = Input(name='field_label') ele_name = Input(name="field_name") ele_desc = Input(name="field_description") choose_type = BootstrapSelect('field_typ') default_text_box = Input(name='field_default_value') default_value = Checkbox(name='field_default_value') field_required = Checkbox(name='field_required') field_past_dates = Checkbox(name='field_past_dates') field_entry_point = Input(name='field_entry_point') field_show_refresh_button = Checkbox(name='field_show_refresh_button') entry_value = Input(name='entry[value]') entry_description = Input(name='entry[description]') add_entry_button = Image('.//input[@id="accept"]') field_category = BootstrapSelect('field_category') text_area = Input(name='field_default_value') dynamic_chkbox = Checkbox(name='field_dynamic') entry_table = Table('//div[@id="field_values_div"]/form/table') text_area = TextInput(id='field_default_value') element_tree = ManageIQTree('dialog_edit_treebox') dynamic_tree = ManageIQTree('automate_treebox') bt_tree = ManageIQTree('automate_treebox') apply_btn = Button('Apply')
class form(View): # noqa retirement_date = Calendar(name='retirementDate') remove_date = Image(locator='.//div[@id="retirement_date_div"]//a/img[@alt="Set to blank"]') retirement_warning = BootstrapSelect(id='retirementWarning') entities = View.nested(BaseNonInteractiveEntitiesView) save = Button('Save') cancel = Button('Cancel')
class scripting(View): # noqa TEXT = 'Scripting Actions Guide' img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT)) link = VersionPick({ Version.lowest(): Text('//a[normalize-space(.)="{}"]'.format(TEXT)), '5.9': img_anchor })
class automation(View): # noqa TEXT = 'Methods For Automation Guide' img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT)) link = VersionPick({ Version.lowest(): Text('//a[normalize-space(.)="{}"]'.format(TEXT)), '5.9': img_anchor })
class inventory(View): # noqa TEXT = 'Infrastructure Inventory Guide' img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT)) link = VersionPick({ Version.lowest(): Text('//a[normalize-space(.)="{}"]'.format(TEXT)), '5.9': img_anchor })
class general(View): # noqa TEXT = 'General Configuration Guide' img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT)) link = VersionPick({ Version.lowest(): Text('//a[normalize-space(.)="{}"]'.format(TEXT)), '5.9': img_anchor })
class vm_hosts(View): # noqa TEXT = 'Virtual Machines Hosts Guide' img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT)) link = VersionPick({ Version.lowest(): Text('//a[normalize-space(.)="{}"]'.format(TEXT)), '5.9': img_anchor })
class policies(View): # noqa TEXT = 'Defining Policies Profiles Guide' img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT)) link = VersionPick({ Version.lowest(): Text('//a[normalize-space(.)="{}"]'.format(TEXT)), '5.9': img_anchor })
class scripting(View): # noqa TEXT = 'Scripting Actions Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
class rest(View): # noqa TEXT = 'Rest Api Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
class providers(View): # noqa TEXT = 'Providers Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
class scripting(View): # noqa TEXT = 'Scripting Actions Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class providers(View): # noqa TEXT = 'Providers Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class automation(View): # noqa TEXT = 'Methods For Automation Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class general(View): # noqa TEXT = 'General Configuration Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class vm_hosts(View): # noqa TEXT = 'Virtual Machines Hosts Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
class policies(View): # noqa TEXT = 'Defining Policies Profiles Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class policies(View): # noqa TEXT = 'Defining Policies Profiles Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
class inventory(View): # noqa TEXT = 'Infrastructure Inventory Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class general(View): # noqa TEXT = 'General Configuration Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
class monitoring(View): # noqa TEXT = 'Monitoring Alerts Reporting Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class inventory(View): # noqa TEXT = 'Infrastructure Inventory Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
class rest(View): # noqa TEXT = 'Rest Api Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class automation(View): # noqa TEXT = 'Methods For Automation Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
class vm_instances(View): # noqa # TODO: title must be changed once BZ 1723813 is resolved. TEXT = 'Virtual Machines Hosts Guide' link = img_anchor = Text(f'//a[@title="View the {TEXT}"]') img = Image(locator=f'//img[@alt="View the {TEXT}"]')
class monitoring(View): # noqa TEXT = 'Monitoring Alerts Reporting Guide' link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT)) img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))