Example #1
0
    class general(Tab):
        TAB_NAME = 'General'
        TAB_LOCATOR = ParametrizedLocator(
            './/div[contains(@class, "pf-c-tabs")]//ul'
            "/li[button[normalize-space(.)={@tab_name|quote}]]")
        ROOT = '//section[@id="generalSection"]'

        orgnization = FormSelect('OUIA-Generated-FormSelect-default-1')
        location = FormSelect('OUIA-Generated-FormSelect-default-2')
        host_group = FormSelect('OUIA-Generated-FormSelect-default-3')
        operating_system = FormSelect('OUIA-Generated-FormSelect-default-4')
        linux_host_init_link = Link(
            '//a[text()="Linux host_init_config default"]')
        capsule = FormSelect('OUIA-Generated-FormSelect-default-5')
        insecure = Checkbox(id='reg_insecure')
Example #2
0
 class host(SatTab):
     name = TextInput(id='host_name')
     organization = FilteredDropdown(id='host_organization')
     location = FilteredDropdown(id='host_location')
     hostgroup = FilteredDropdown(id='host_hostgroup')
     deploy = FilteredDropdown(id='host_compute_resource')
     lce = FilteredDropdown(id='host_lifecycle_environment')
     content_view = FilteredDropdown(id='host_content_view')
     content_source = FilteredDropdown(id='s2id_content_source_id')
     reset_puppet_environment = Link(".//a[@id='reset_puppet_environment']")
     inherit_puppet_environment = ToggleButton(
         locator=".//div[label[@for='environment_id']]//button")
     puppet_environment = FilteredDropdown(id='host_environment')
     puppet_master = FilteredDropdown(id='host_puppet_proxy')
     puppet_ca = FilteredDropdown(id='host_puppet_ca_proxy')
     openscap_capsule = FilteredDropdown(id='host_openscap_proxy')