From 094c11d8687a7cf9c5d2d89e4f459e3b9eda322a Mon Sep 17 00:00:00 2001 From: cesar991 Date: Wed, 24 Aug 2016 16:41:03 +0200 Subject: [PATCH] Add force_service function in service_functions.py --- tests/console/include/service_functions.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/console/include/service_functions.py b/tests/console/include/service_functions.py index a78ad6c77f..b617344f7e 100644 --- a/tests/console/include/service_functions.py +++ b/tests/console/include/service_functions.py @@ -126,3 +126,12 @@ def edit_service(driver,name,new_name=None,new_group=None,new_description=None,n driver.find_element_by_id("radiobtn0002").click() diver.find_elemet_by_id("submit-crt").click() + +def force_service(driver,service_name): + + search_service(driver,service_name,go_to_service=False) + + driver.find_element_by_xpath('//tr[contains(.,"'+service_name+'")]/td[11]/a[2]').click() + + time.sleep(10) +