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.

date picker

edited November -1 in Sahi - Open Source
In your application i want select the date in the textbox after clicking in the textbox calender will be open ....after that select the any date in the calender

While playbacked the script nothing is showing
_click(_link("14"));
after this it is showing failure --Stopped Playback: FAILURE--

Comments

  • hi. what does it shows in the logs why it fails?
  • insert a _focus(_textbox("date")) to let the calendar expand
  • ripalripal Members
    I am also getting same problem as mentioned above .

    I tried using solution provided.

    Using insert a _focus(_textbox("date")) is also not working.

    Error while using above is : " Unable to get value of the property "OwnerDocument.Object is null or undefined"
  • Hi,

    It depends on what kind of date picker is in use. Have a look at this script:

    _navigateTo("http://jqueryui.com/demos/datepicker/";);
    _click(_textbox("datepicker"));
    _click(_link("12"));

    use _click for the text box to first open the calendar and then click on the calendar link. This will work.

    Regards,
    Vivek
Sign In or Register to comment.