I have a chunk of python code where I am trying to extract all the links from a particular website. For that, I am using
But the program is not retrieving the links from that website as I am expecting. Instead of that, it is throwing an error typeerror: 'webelement' object is not iterable
Here is the sample code snippet of mine:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
for ii in search:
Why I am getting this error? I have no idea about this. Do you guys pop up the error from it and help me to fix the problem? I really appreciate your help in this regard. It took already much times from me but couldn't find any way.
Thanks a lot.