I want to access a link starting with clients_test on a particular webpage. I have the following code
client_re = re.compile(r"clients_test")
url = get_artifacts_url()
for link in get_links(url):
return "http://220.127.116.11:8080" + link["href"]
Sometimes the page has many links beginnng with clients_test for e.g: clients_test4, clients_test5, clients_test7. The above code just gives me the first link. so in this case i get clients_test4. I want it to return me all the links beginning with clients_test on the python shell so that the user can then specify the from which one he wants to download the exe file.
Kindly help me as i am from QA.