I have a close date field where the date is already populated, and a date creation field which is the actual activity creation date and the logic I want to validate is below -
- Validate that the close date field date is within 60 days of the creation date? For example:
- Creation date - 01/08/2019 (format is dd/mm/yyyy)
- Close date - 29/09/2019 (should be no more than 60 days after creation date. Format is dd/mm/yyyy)
- How do I create a page object method which will get the creation date then check the difference between close date and creation date and fail the test if creation date is more than 60 days before close date?