Add function search agent

This commit is contained in:
cesar991 2016-07-04 13:40:48 +02:00
parent 744c07237f
commit c988138a1c
1 changed files with 7 additions and 0 deletions

View File

@ -174,4 +174,11 @@ def delete_agent (driver,agent_names_list):
driver.find_element_by_id("submit-go").click()
def search_agent(driver,agent_name):
click_menu_element(driver,"Agent detail")
driver.find_element_by_id("text-search").click()
driver.find_element_by_id("text-search").clear()
driver.find_element_by_id("text-search").send_keys(agent_name)
driver.find_element_by_id("submit-srcbutton").click()
driver.find_element_by_css_selector("b").click()