18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Command for Date Picker

shobanashobana Members
edited November -1 in Sahi - Open Source
Hi,

There is a field like Join date and Resigned date with text box and calender icon.

By clicking the calender image calender opens and user can select any date,month and year. While recording this field only _click(_image(36)); is generated.

While playbacked the script only calender appeared onscreen but selected day,month and year is not populated and current date is displayed on that field.

Can anyone give me a solution for this. Is there any command available for date picker.

Comments

  • Hi Shobana,

    We had a similar date picker in our application. First you need to click the calander image that you have mentioned. After this action you should also record clicking the particular date from the small calander that must be appearing after clicking the calander image. I hope you are not missing that step.

    Regards,
    Pankaj.
  • shobanashobana Members
    edited February 2009
    Hi Pankaj,

    Thanks for ur reply. I not missed that step. After clicking the date calender image i selected date, month from drop down list,year from drop down list in calender while recording. But scripts are not generated for these actions. And while playback the script stucks at Calender image Popup and by default showing current date.

    please provide me solution for this issue.
  • Hi Shobana, try adding quotes for the date in the script manually. and then try the playback. This should solve your issue.
Sign In or Register to comment.