Manish540
(Manish Shettigar)
March 8, 2023, 6:58am
2
Hi @Manju_Reddy_Kanughula ,
Check this below link,
dear @Gokul_Jayakumar @Dawid_Nguyen .
thanks for your kind effort for the solution.
solution: 1) I inspect the browser page and find the delivery_date field.
2) then i went to console in browser page and test it with the code
document.getElementById(‘delivery_date’).value=‘2022-09-10’ . it was setting the
date field exactly.
3) then I use inject JS script activity and used the same code. it worked fine
[image]
“document.getElementById(‘delivery_date’).value=‘2022-09-10’;”
Hope this may help you
1 Like
Anil_G
(Anil Gorthi)
March 8, 2023, 7:01am
3
@Manju_Reddy_Kanughula
Check if type into works …
If not try checking if set attribute can be used …if there is a backend value where we can set the date
Cheers
In addition, might be good if instead of picking the date from the calendar view, you can write on the field with either Type Into activity (I’d try with simulate) or Set Text.
if it’s possible, then you can prepare the date in a DateTime variable, convert it to the desired format using .ToString("dd/MM/yyyy")
- based on the image - and then just write the value in the text field.
Hope it helps!
HI @Manju_Reddy_Kanughula
Check whether you can type it that field if you can means you can directly use type into activity there
and type
DateTime.ParseExact(inputDateString,{"dd.MM.yyyy","MM/dd/yyyy hh:mm:ss"},System.Globalization.CultureInfo.InvariantCulture,System.Globalization.DateTimeStyles.None).ToString("dd/MM/yyyy")
Regards
Sudharsan
Hi thanks for your replays.
I Need select manually, typeinto activity is not working.
Anil_G
(Anil Gorthi)
March 8, 2023, 7:06am
7
@Manju_Reddy_Kanughula
Did you try with set attribute activity?
Cheers
@Manju_Reddy_Kanughula
First click on the date field to bring up the date picker, then as @Rahul_Unnikrishnan suggested.
you would amend the selector (aaname) to make it a variable, inside a click activity to select the relevant date.
The only thing you may need to look at is where is shows two dates of the same value, i.e. 30th March / 30th April etc.
You can use UiExplorer to understand more the fine tuning of the selector to make sure you pick the correct one.
or
Try with SET Text Activity.