18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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 Control Issue
In My application there are two date controls one is FromDate and another is ToDate
by default the calender control display current date ex: "8/3/2010" - mm/dd/yyyy
when i generate a script from sahi for the dates FromDate : 5/20/2010 and Todate : 10/17/2010
i get the code as follows:
//FromDate Control
_click(_cell("ctl00_MainContent_ucSearchFilter_C1wdeFromDate_cb_td"));
_click(_image("<[1]"));
_click(_image("<[1]"));
_click(_image("<[1]"));
_click(_span("20[1]"));
//ToDate Control
_click(_image("ctl00_MainContent_ucSearchFilter_C1wdeToDate_cb_img"));
_click(_image(">"));
_click(_image(">"));
_click(_span("17"));
But when i run the script thru sahi tool
the calender control displays : FromDate : 6/20/2010 and ToDate : 9/17/2010
I tried with different Dates but sahi is giving improper dates
i am not able to get accurate dates .
Please reply to my issue
by default the calender control display current date ex: "8/3/2010" - mm/dd/yyyy
when i generate a script from sahi for the dates FromDate : 5/20/2010 and Todate : 10/17/2010
i get the code as follows:
//FromDate Control
_click(_cell("ctl00_MainContent_ucSearchFilter_C1wdeFromDate_cb_td"));
_click(_image("<[1]"));
_click(_image("<[1]"));
_click(_image("<[1]"));
_click(_span("20[1]"));
//ToDate Control
_click(_image("ctl00_MainContent_ucSearchFilter_C1wdeToDate_cb_img"));
_click(_image(">"));
_click(_image(">"));
_click(_span("17"));
But when i run the script thru sahi tool
the calender control displays : FromDate : 6/20/2010 and ToDate : 9/17/2010
I tried with different Dates but sahi is giving improper dates
i am not able to get accurate dates .
Please reply to my issue
This discussion has been closed.
Comments
It is possible that the javascript date control responds after a small delay. Try to introduce a small wait after clicks to the arrow images.
Try the following:
Regards,
Narayan