Selecting the date from date picker calendar in webpage

Hi,

I am trying to select a date from date pick calendar in particular web page. Date field in the web page is not editable hence i need to select a date from the date pick calendar. I have recorded the sequence to select a date from the date picker but when i tried to run the recorded sequence, It is not selecting the date.

I have also noticed that date pick calendar can be dragged anywhere within the screen. I am reading the date from excel file and passing it to variable. Using this variable, i am trying to select respective date from date picker.

Please find the below screen of the destination web page with date pick calendar.

Any assistance would be much appreciated and helpful.

@ssankar, Can you post the

  • Selector
  • Screenshot of error (if any)
  • Xaml (if possible)

So that everyone here might get a detailed overview of what is wrong and give you a solution ?

Regards,
Dom :slight_smile:

I have recorded the sequence. Please find the Xaml for reference.

When i running the workflow, it is opening the calendar but not selecting any dates.

Date picker.xaml (9.0 KB)

please check the weather you could able to find aaname property in uiexplorer if available pass date as variable. if aaname is not available then try some iterations based on column and row idexes and pass them as variables

if aaname is available
“<webctrl id=’’ tag=‘DIV’ aaname=’’ parentclass=’’ />”

else
“<webctrl css-selector=‘body>div>table>tbody>tr>td’ tableCol=‘2’ tableRow=‘7’ tag=‘TD’ />”

thanks,
pathrudu

Could anyone please tell the solution or give a sample code on how to pick the date from the calender format when the text box is not editable

Hi @Sravya_vds,

Can you please try Set Text and pass the dateformat as string. It worked for me.

Regards,
Sasikumar

Hey,

I tried the same, it is inputting date but the calendar is not closing after doing so. It needs to be closed to input in other text fields. Any idea how to do so?

Hi @Mintu_Sinha

Any chance you could use hotkeys to confirm your selection? Maybe sending an Esc key will close the calendar with the date being saved.

I made a YouTube video explaining how to do this. Hope it helps!

1 Like

Very good explanation !!! a lot of things learnt from this video

1 Like