Dec-28-2017, 04:07 PM
Quote:dates = data.find_elements_by_id("completion_dt") for date in dates: dt_obj = datetime.datetime.strptime(date, '%M/%d/%Y')
.find_elements_by_id()
returns a list of elements, not a list of strings. The datetime module doesn't know how to get a date out of whatever selenium is giving you, so you need to get the date out of the element first. Which is also what your error is telling you.