I'm getting this error.
elems = driver.find_elements_by_xpath("//a[contains(@href,'abc.com')]") #for elem in elems: url = elems.get_attribute("href") print(url)
AttributeError Traceback (most recent call last) <ipython-input-291-f30319c0a4c2> in <module> 2 #for elem in elems: 3 ----> 4 url = elems.get_attribute("href") 5 print(url) AttributeError: 'list' object has no attribute 'get_attribute'
Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>