How to Select Previous Date From the Pop up

Hi Team

When i click on From Date the above popup is coming from that i need to select previous day date

Thanks
Likitha

Hi @vinjam_likitha

=> Use get text activity to get the date from the web page from From Date field. Output - GetDate (String datatype)
=> Take an assign activity and Create a Datetime datatype variable let call it as DateVar

- Assign -> DateVar = DateTime.ParseExact(GetDate, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture).Adddays(-1)

=> Use Type into activity to enter the DateVar variable in the From Date field.

The above expression will take the previous day of that day.

Hope it helps!!

hi @vinjam_likitha

Better to use Type into activity, I think so that it would work on the field.
You wouldn’t need to select it from here.

Hi

The From Date field is Disabled. we cannot enter manually. The only way to select previous day date is the
1)First need to click on the from date text box
2)a calendar pop-up will be available from that calendar we need to select previous day date.

note: Type into doesn’t work on the date field.

We can’t select the previous date in date picker because the selectors of date picker is very complex.

Try to do with the Type into activity If not take a click activity, indicate the element and send the selectors of that element.

Then it will be better for us to provide the solution. @vinjam_likitha

@vinjam_likitha

Please try this below method I have given a sample as well

You can try a similar approach

Alternately try using set text activity…few fields might not support type into but set text might still work as it sets the value to the attribute in html directly

Hope this helps

Cheers