Correct create_agent function

This commit is contained in:
cesar991 2016-07-05 11:49:25 +02:00
parent 487d36936e
commit ecb1146701
1 changed files with 2 additions and 0 deletions

View File

@ -202,3 +202,5 @@ def create_agent(driver,agent_name,ip=None,description=None,group=None,os_id=Non
if os_id !=None: if os_id !=None:
Select(driver.find_element_by_id("id_os")).select_by_visible_text(os_id) Select(driver.find_element_by_id("id_os")).select_by_visible_text(os_id)
driver.find_element_by_id("submit-crtbutton").click()