I need to get list of links from a webpage it has href="/example/*" it doesn't have any specific class name or id.
elems = driver.find_elements_by_xpath("//a[@href]")
for elem in elems:
print(elem.get_attribute("href"))
Right now, I'm getting all the links in the page.