I'm having some problems with retrieving innerHTML of multiple elements in Python with Selenium.
When I retrieve the data from one element this works perfectly with the following code:
productid0 = driver.find_element_by_class_name("mod-article-tile__meta")
productid1 = productid0.get_attribute('innerHTML')
From the moment I change element to elementS then my code doesn't work anymore and I get the following error "AttributeError: 'list' object has no attribute 'get_attribute'":
productid0 = driver.find_elements_by_class_name("mod-article-tile__meta")
productid1 = productid0.get_attribute('innerHTML')
I need to use the elements as I want to get this from all my elements on a specific page.
Can anyone help me with this?
Thanks!