Here is the DOM/HTML enter image description here
I need an xpath where i need to select the desired date from the desired month from the date picker. Eg: desired date = 31 and desired month = december/january/february
Here are my xpaths to select a respective date from different months:
//div[@class='ui-datepicker-title']//span[text()='December']//..//..//..//table//a
Here is my answer:
xpath: //td[@data-month='11']//a[text()='31']
Above Xpath matches December 31st and for January you can change data-month attribute value as '0' and for February '1' and so on... and replace day with 31.
In order to pick month select a value from 0-11 and for date 1-(31 or 30 or 28 or 29).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.