Hi,
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")
def get_client_url():
url = get_artifacts_url()
for link in get_links(url):
if client_re.search(link["href"]):
return "http://11.12.13.27: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.