I am trying to scrape a website for my project, but i'm having trouble with scrapping image names via Selenium from this website
with the below code, I am able to use selenium to return me the text data from the website
results = driver.find_elements_by_css_selector("li.result_content")
for result in results:
company_name = result.find_element_by_tag_name("h3").get_attribute("innerText")
product_name = result.find_element_by_id('sProdName').get_attribute("innerText")
product_paymode = result.find_element_by_id('paymode').get_attribute("innerText")
I was told to use get_attribute("innerText") because there are several items hidden, and get_attribute("innerText") would help me get the hidden items. (True enough, it works)
my question is: How do I scrape the prod-feature-icon class, to tell me if that picture is active or not??
