예제 #1
0
    def fill_form(self, data):
        driver = self.manage_ui.driver

        fill_element_from_dict(driver, 'sql_resolvername', 'name', data)

        for field in ('server', 'database', 'user', 'password', 'table',
                      'limit', 'encoding'):
            fill_element_from_dict(driver, 'sql_' + field, field, data)
예제 #2
0
    def fill_form(self, data):
        driver = self.manage_ui.driver

        fill_element_from_dict(driver, 'sql_resolvername', 'name', data)

        for field in ('server', 'database', 'user', 'password',
                      'table', 'limit', 'encoding'):
            fill_element_from_dict(driver, 'sql_' + field, field, data)
예제 #3
0
    def fill_form(self, data):
        driver = self.manage_ui.driver

        fill_element_from_dict(driver, 'file_resolvername', 'name', data)
        fill_element_from_dict(driver, 'file_filename', 'filename', data)
예제 #4
0
    def fill_form(self, data):
        driver = self.manage_ui.driver
        preset_ldap = data.get('preset_ldap')

        if preset_ldap:
            find_by_id(driver, "button_preset_ldap").click()
        else:
            find_by_id(driver, "button_preset_ad").click()

        fill_element_from_dict(driver, 'ldap_resolvername', 'name', data)
        fill_element_from_dict(driver, 'ldap_uri', 'uri', data)
        if data['uri'].startswith("ldaps:"):
            fill_element_from_dict(driver, 'ldap_certificate', 'certificate',
                                   data)
        fill_element_from_dict(driver, 'ldap_basedn', 'basedn', data)
        fill_element_from_dict(driver, 'ldap_binddn', 'binddn', data)
        fill_element_from_dict(driver, 'ldap_password', 'password', data)
예제 #5
0
    def fill_form(self, data):
        driver = self.manage_ui.driver

        fill_element_from_dict(driver, 'file_resolvername', 'name', data)
        fill_element_from_dict(driver, 'file_filename', 'filename', data)
예제 #6
0
    def fill_form(self, data):
        driver = self.manage_ui.driver
        preset_ldap = data.get('preset_ldap')

        if preset_ldap:
            find_by_id(driver, "button_preset_ldap").click()
        else:
            find_by_id(driver, "button_preset_ad").click()

        fill_element_from_dict(driver, 'ldap_resolvername', 'name', data)
        fill_element_from_dict(driver, 'ldap_uri', 'uri', data)
        if data['uri'].startswith("ldaps:"):
            fill_element_from_dict(driver, 'ldap_certificate', 'certificate', data)
        fill_element_from_dict(driver, 'ldap_basedn', 'basedn', data)
        fill_element_from_dict(driver, 'ldap_binddn', 'binddn', data)
        fill_element_from_dict(driver, 'ldap_password', 'password', data)