Answer the question
In order to leave comments, you need to log in
Actions and conditional checks with found elements, how to implement?
Using the command:
day=driver.find_elements_by_xpath('//*[starts-with(@id, "td_")]/td[3]/span[1]')
for list_day in day:
print(int(list_day.text))
Answer the question
In order to leave comments, you need to log in
buffer = 0
for list_day in day:
if int(list_day.text) > buffer:
print('больше')
elif int(list_day.text) < buffer:
print('меньше')
else:
print('равен')
buffer = int(list_day.text)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question