在此处输入图像说明我想点击datepicker中的下个月按钮来测试应用程序。但是它没有为此找到唯一元素。我也尝试过使用elementor。但问题仍然存在。可能有人帮我吗?
# Sorted
available_dates = [
2017-03-01 00:00,
2017-03-02 00:00,
2017-03-04 00:00,
...
]
subtract_from_date(date, day=None, month=None, year=None):
# check if it's day/month/yeah
...
# do the actual subtraction and store it in substracted_date
...
# get the closest date
for index, date in enumerate(available_dates):
if date > substracted_date:
return available_dates[index-1]
elementor给定我用来定位元素的定位器:
div class="_720kb-datepicker-calendar-header-right"
a class="_720kb-datepicker-calendar-month-button" href="javascript:void(0)" ng-click="nextMonth()" title="Next"b class="_720kb-datepicker-default-button" b a div
请参考以下链接查看图片 链接:https://drive.google.com/open?id=0B1_qNfzU2s3lZHB6UE1HNDVVQ2s