From 0e93fed7ff05c026edefbe26a0ea464077b45f16 Mon Sep 17 00:00:00 2001 From: cesar991 Date: Thu, 14 Jul 2016 15:34:53 +0200 Subject: [PATCH] Repair error in select group in create_agent function --- tests/console/include/agent_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/console/include/agent_functions.py b/tests/console/include/agent_functions.py index 8048f7061b..288c5bb10e 100644 --- a/tests/console/include/agent_functions.py +++ b/tests/console/include/agent_functions.py @@ -43,7 +43,7 @@ def create_agent(driver,agent_name,ip=None,description=None,group=None,os_id=Non driver.find_element_by_id("text-comentarios").send_keys(description) if group != None: - Select(driver.find_element_by_id("grupo")).select_by_visible_text(group) + driver.find_element_by_xpath('//option[contains(.,"'+group+'")]').click() if os_id !=None: Select(driver.find_element_by_id("id_os")).select_by_visible_text(os_id)