Dynamic datepicker

Hi!

I have a date picker and requirement whereby i have to always select the previous month if currentdate is 1st of the month example below.

On May 1st, 2025, the extraction should cover the entire previous month, from April 1st to April 30st.

i am facing a issue where i am unable to select the 1st on the calendar of the previous month ie 1st April. As the position of 1st of every month changes

@rayz1503

can you compare selectors for both 1st March and 1st April in UI Explorer ? Try to find a unique identifier so that you can use it to determine the date should be 1st March or 1st April.

@rayz1503

  1. First try to use type into or set text if that permits instead of clicking on calendar
  2. If 1 does not work..then go with the option of clicking..here I have explained how to make the dynamic clicks on calendar

Cheers

1 Like

Hey @rayz1503 hope this video help you to resolve your query

cheers

They are of the same “class” so i am unable to uniquely identify left calendar and right calendar

@Anil_G

I have also considered option 1, but would like to explore more options.

For option 2 would it still work if both calendar is of the same “class” which means i am unable to uniquely identify left and right calendar?

1 Like

@rayz1503

Ideally it should and based on any other attribute or idx we can try differentiating..or even the parents can be different

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.