Add force_service function in service_functions.py

This commit is contained in:
cesar991 2016-08-24 16:41:03 +02:00
parent 5875f9161e
commit 094c11d868
1 changed files with 9 additions and 0 deletions

View File

@ -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)