Hi,
Please help with selecting the particular date in this icon, which comes from RDD. I need help on this
Hi,
@Salman_Faries Hi, seems this is a custom date picker. Instead of automating only the calendar icon, try indicating the complete date input field and use Click first.
If possible, share one screenshot after clicking the calendar icon. That will help to check the date picker structure.
Can you clarify, are you able to do the Web automation using web activities?
If you have access to do the web automation, then try to change the selectors and reindicate the that entire date picker.
Go through once in this thread
Happy Automation
@Salman_Faries Since the date is coming dynamically from RDD, I wouldn’t recommend hardcoding the date selector. First convert the RDD date into a DateTime and get the day, month and year separately.
Steps:
Read the date from RDD Suppose the value coming from RDD is: 15/09/2026
Convert it to DateTime Use an Assign activity: requiredDate = DateTime.ParseExact(rddDate,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture)
Get day, month and year
Create 3 variables:
requiredDay = requiredDate.Day.ToString
requiredMonth = requiredDate.ToString("MMMM")
requiredYear = requiredDate.Year.ToString
Click the date field/calendar icon
This will open the calendar popup.
Read the currently displayed month/year
Use Get Text on the header, for example:
September 2026
Compare current calendar month with required date
Convert the header also into DateTime:
currentMonth = DateTime.ParseExact(calendarHeader,"MMMM yyyy",System.Globalization.CultureInfo.InvariantCulture)
Navigate month by month
If:
requiredDate > currentMonth
click the right arrow.
If:
requiredDate < currentMonth
click the left arrow.
Put this inside a loop until:
currentMonth.Month = requiredDate.Month AndAlso currentMonth.Year = requiredDate.Year
Select the day dynamically
Indicate one date, for example 15, using Click and check its selector in UI Explorer.
You may get something similar to: replace 15 with
Finally validate the selected value
Use Get Text/Get Attribute on the date textbox and compare it with your RDD date.
Please follow this steps and if you faced any issue let us know
Hi @Salman_Faries,
First, check which attribute contains the full date value. Then try using the Set Attribute activity to update the date directly.
Thanks!
Try Set Text with AlterIfDisabled set to true