March 8, 2023, 6:58am
Check this below link,
@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
Hope this may help you
March 8, 2023, 7:01am
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
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!
Check whether you can type it that field if you can means you can directly use type into activity there
Hi thanks for your replays.
I Need select manually, typeinto activity is not working.
March 8, 2023, 7:06am
Did you try with set attribute activity?
First click on the date field to bring up the date picker, then as
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.
Try with SET Text Activity.