Answers for "grab all links with specific word using python selenium"

1

selenium python find all links

elems = driver.find_elements_by_xpath("//a[@href]")
for elem in elems:
    print(elem.get_attribute("href"))
Posted by: Guest on June-12-2020

Code answers related to "grab all links with specific word using python selenium"

Python Answers by Framework

Browse Popular Code Answers by Language