Calendar date selection issue

Description

Hi Everyone,

I am facing an issue with calendar date selection. The calendar displays highlighted current dates and disabled dates from the previous and next months, which causes dynamic selector changes and duplicate date values.

Additionally, the calendar header (month and year, such as December 2025) changes dynamically based on the last selected date (for example, if the previously selected date was Feb 01, 2026, the header updates to February 2026). This header value is not accessible as standard UI text, making it difficult to use in selectors or validations.

Since clicking this header is required for further automation steps (year selection, month selection, filtering enabled dates, and avoiding highlighted/disabled elements), the logic has become complex and is taking additional time to stabilize.

Sharing the screenshot for reference. Any suggestions or best practices would be appreciated.

Thanks!

Link

Date

2026-02-06

Hi @Aneesh_K can you please share screenshot for the mentioned field and did you try type into directly in this field with the mentioned Date format ?

Hello,
I think this is a classic dynamic web-calendar problem : duplicate days + hidden header state usually means the selector should rely on attributes, not visible text.

What I’d probably do:

  • Don’t target the day number → use aria-label, data-date, or full date attributes if available
  • Exclude wrong days → add conditions like not contains('disabled') and target only current-month elements
  • For the header → I think the real value is likely in a parent node or hidden attribute (check Full DOM in UI Explorer)
  • If reading the header is messy, I’d probably just navigate with arrows until the target date becomes enabled, then click it

This approach is usually much more stable in UiPath calendars :+1:

If you share the selector, I can help refine it.