Repair error in create_policy function

This commit is contained in:
cesar991 2016-07-15 11:19:31 +02:00
parent 6e023af9d6
commit 3454d327e3
1 changed files with 2 additions and 2 deletions

View File

@ -14,10 +14,10 @@ def create_policy(driver,policy_name,group,description=None):
click_menu_element(driver,"Manage policies") click_menu_element(driver,"Manage policies")
driver.find_element_by_id("submit-crt").click() driver.find_element_by_id("submit-crt").click()
driver.find_element_by_id("text-name").send_keys(profile_name) driver.find_element_by_id("text-name").send_keys(policy_name)
driver.find_element_by_xpath('//option[contains(.,"'+group+'")]').click() driver.find_element_by_xpath('//option[contains(.,"'+group+'")]').click()
if description!= None: if description!= None:
driver.find_element_by_id("textarea_description").send_keys(profile_name) driver.find_element_by_id("textarea_description").send_keys(description)
driver.find_element_by_id("submit-crt").click() driver.find_element_by_id("submit-crt").click()