Extend function for create new action

(cherry picked from commit d711f8493a)
This commit is contained in:
cesar991 2016-09-28 14:54:38 +02:00
parent 0d8d2d81b4
commit e607a718cb
1 changed files with 7 additions and 0 deletions

View File

@ -59,7 +59,14 @@ def create_new_action_to_alert(driver,action_name,action_group,command,threshold
driver.find_element_by_id("textarea_field3_value").clear()
driver.find_element_by_id("textarea_field3_value").send_keys(field3)
if command == "Syslog" and field1 != None and field2 != None:
driver.find_element_by_id("textarea_field1_value").clear()
driver.find_element_by_id("textarea_field1_value").send_keys(field1)
driver.find_element_by_id("textarea_field2_value").clear()
driver.find_element_by_id("textarea_field2_value").send_keys(field2)
driver.find_element_by_id("submit-create").click()