I am trying to get span elements from same class names. I am trying to click the lastest avaible days in calender.
My code is :
days = driver.find_element(By.CLASS_NAME,'BookingCalendar-date--bookable')
avaibledays = days.find_elements(By.CLASS_NAME,'BookingCalendar-day')
for i in avaibledays:
print(i.text)
This work for 1 class when I try to change the days variable like this:
days = driver.find_elements(By.CLASS_NAME,'BookingCalendar-date--bookable')
I can't get all.
There is a calander html.
I want to click a span at lastest class name is = "BookingCalendar-date--bookable"
Span names and class same for Booking-Calendar-date--unavaible
So basicly I'm trying to get multiple span elements from classes name is BookingCalendar-date--bookable
. The span elements have a same class name it's = BookingCalendar-day