Date range selection, typing is not working

I am trying to select the date range by typing the date range into the box, but after typing, i am unable to click on the generate button. but when i select the date using the drop down manually, the generate button is clickable. please suggest how can i pick the date range from the calender itself.
image

When automating a date range selection on a web page, and you’re unable to click the “Generate” button after typing the date, it’s likely that the website has some JavaScript that requires the date to be selected from the calendar UI to enable the button.

  1. Use Click Activities*: Use ‘Click’ activities to open the calendar dropdown.
  2. Set Date in Fields: If typing is allowed but doesn’t trigger the calendar event, type the dates into the fields, and then simulate a tab out of the field to trigger any onchange events in the webpage.
  3. Simulate Calendar Selection*: If typing doesn’t work, use ‘Click’ activities to select the start and end dates from the calendar UI.
  4. Use JavaScript Injection*: If the UI method is unreliable or too slow, consider injecting JavaScript to set the value of the date fields directly. You can use the ‘Inject Js Script’ activity for this purpose.
  5. Enable/Click Generate Button*: After setting the dates, either the button will become enabled automatically, or you might need to simulate another action that triggers the button to become active.

Note; If these approaches do not work due to specific webpage behavior, you might need to use UI automation techniques to interact with the calendar widget directly, mimicking the user’s actions.

@Ayush_thakur
Sequence:
1. Type Into activity (SimulateType checked, Text: your_date_range)
2. Send Hotkey activity (Key: Enter)
3. Click activity on ‘Generate’ button

For me, after typing and then hitting the enter button, its not activating the generate button

I am using this formula for the type into activity:

DateTime.Now.AddDays(-6).ToString(“dd-MMMM-yyyy”) +" to "+DateTime.Now.AddDays(-2).ToString(“dd-MMMM-yyyy”)

do you have any suggestions?