How to record current system date from date picker using Katalon recorder?


#1

This below Xpath picks today’s date which is 10/25/2018 but how about tomorrow if I use this xpath I need tomorrows date to be picked, please advise the xpath (target value for current system date)

//[@id=“ui-datepicker-div”]/table/tbody/tr[4]/td[5]
xpath=(.//
[normalize-space(text()) and normalize-space(.)=‘Today’])[1]/preceding::a[7]
//a[contains(text(),‘25’)]


#2

HI,

try to find it by id, don’t use

//a[contains(text(),‘25’)]

because it will work only if the date contains exactly “25” text.

looks prrety fine for me