1

How do I select a random future date from the date picker every time in Katalon studio?

enter image description here

1
  • 1
    I know nothing about Katalon, but it should be possible to create a random integer variable and use a date add function to choose a day some number of days in the future.
    – Kate Paulk
    Commented Nov 2, 2022 at 13:20

1 Answer 1

-1

You can have date picker use this: Date todaysDate = new Date()

def screenFormattedDate = todaysDate.format('dd/MM/yyyy')

//Used to enter today's date WebUI.setText(findTestObject('Object Repository/AAAAa/Start_date'), screenFormattedDate)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.