This is the tag containing href
.
This is the HTML of one of the links when I inspected it.
The code I used to for looping through the links is:
elems = driver.find_elements_by_xpath("//a[@href]")
for elem in elems:
print(elem)
elem.get_attribute("href").click()
but I am getting the error:
File "C:/Users/user/Desktop/sel.py", line 31, in
(session="7896348772e450d1658543632013ca4e", element="0.06572622905717385-1")>
elem.get_attribute("href").click()
AttributeError: 'str' object has no attribute 'click'
Can any one help please.