I am trying to scrape a website which has some info under its div tag like this
<div> id="searchResults" class="multiple-view-elements"
<span>name</name>
<span>info</name>
<span>info</name>
<span>name</name>
......
My code
print ('-------------------------------------------------------------')
resp=driver.find_elements_by_id('searchResults').text
print (resp)
driver.quit()
it gives me this error
AttributeError: 'list' object has no attribute 'text'
What I'm doing wrong?