Hello all, I need when I click drop-down date show popup automatically choose/click date is today + 2 weeks. Example today is Jan 6, 2025 then date is Jan 20, 2025 like this screenshot.
How to fix this?
Hello all, I need when I click drop-down date show popup automatically choose/click date is today + 2 weeks. Example today is Jan 6, 2025 then date is Jan 20, 2025 like this screenshot.
How to fix this?
You can calculate the 2 weeks ahead date and modify the Ui selector with that date. This code will give to you the 2 weeks ahead date.
DateTime.Now.AddDays(14).ToString("MM-dd-yyyy")
Hello @anon1569336,
Assign activity to calculate the target date.targetDate = Now.AddDays(14).ToString(“MMMM d, yyyy”)
Type Into activity to input targetDateupdate : suddenly not running. Source of this date are is https://wise.com/us/invoice-generator/ .
But use case date really very hard for solved?
in general it is a 2/3 Click
Click the DropDown like element:
<webctrl aaname='Due date' class='control-label' tag='LABEL' />
<nav up='1' />
<webctrl tag='BUTTON' />
if due date is in the next month, click next month button → [>]
<webctrl tag='BUTTON' type='button' aria-label='next month' />
then select calculated due date (with the help of a dynamized and integrated anchored selector)
<webctrl tag='TABLE' />
<webctrl aria-label='{{strDueDate}}*' tag='BUTTON' />
strDueDate is of format: dueDate.tostring("M/d/yyyy") where dueDate is of DataType: DateTime
this screenshot as a condition : if the condition is true, click next month button then click the date and if the condition is false, click the date only.
btw my logic is true or how to?
I am still begin learn RPA when I open the UI explorer there are many divs like front-end code.
Retrieve the date and month-year for 14 days from the current date as follows:
Use these strings dynamically in your UI to select the desired date from the calendar.
Had create flow for 2 week date @anon1569336
View on it hope so resolve your issue.
Happy automation.
UI_calender_automation.xaml (30.1 KB)