Selecting the date from date picker calendar in webpage

studio

#1

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.


#2

@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:


#3

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)


#4

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


#5

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


#6

Hi @Sravya_vds,

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

Regards,
Sasikumar