I want a quick export of all events, with event type and event title from my local html file.
i=0
for elements in driver.find_elements_by_class_name('event'):
entryType = driver.find_element_by_class_name('event-type')
contentEntryType = entryType.get_attribute("innerHTML")
print (contentEntryType)
entryTitle = driver.find_element_by_class_name('event-title')
contentEntryTitle = entryTitle.get_attribute("innerHTML")
print (contentEntryTitle)
i=i+1
print (i)
The counter runs correctly up to the number of events. Event type and event title will be printed.
But event type and event title will stay identical for all events, where i runs up correctly to 251. Can anybody point me to what I have overseen?