hi, I’m Muti from Indonesia, I’m newbie as tester and all this time manual testing and try to using Katalon for my new project. I got some problem when i try to playback and get failure when i choose date because can’t find right css selector or xpath. Can anyone help me?
Have a look at this post:
I believe you do not want to test the JavaScript dialog; you just want to input date into the “Start Time” field. Then you should put “dd/MMM/yyyy” text directly into the text filed.
Do you want to type the date 1 week plus today? Try the following snippet in your test case.
// import java.time.LocalDateTimeimport java.time.format.DateTimeFormatterdef visitDate = LocalDateTime.now().plusWeeks(1)def visitDateStr = DateTimeFormatter.ofPattern("dd/MM/yyyy").format(visitDate)WebUI.setText(findTestObject('Page_CuraAppointment/input_visit_date'), visitDateStr)
Thanks, how about set in 3 days?