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.
problem with date picker in the recorded script
Hi,
I am using SAHI 3.5, facing problem with the element recorded for date picker. It is as follow:
_click(_div("x-trigger-index-0 x-form-trigger x-form-date-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-date-trigger-over"));
At the time of playback my script is failing at this point. The log is showing that the element is not found on the browser.
Please anyone can help me in this. Its urgent for me i have to fix the issue.
I am using SAHI 3.5, facing problem with the element recorded for date picker. It is as follow:
_click(_div("x-trigger-index-0 x-form-trigger x-form-date-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-date-trigger-over"));
At the time of playback my script is failing at this point. The log is showing that the element is not found on the browser.
Please anyone can help me in this. Its urgent for me i have to fix the issue.
This discussion has been closed.
Comments
Can you let me know which frame work are you using to select date from datepicker
Could you post the example of that datepicker.
Regards
Sumitra
Actually I am new to this tool. I don't know the framework related information.
I was just practising the the things on a sample application.
But the following is the script getting recorded from the date picker.
_click(_span("Storebound Controls"));
_click(_div("x-trigger-index-0 x-form-trigger x-form-date-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-date-trigger-over"));
_click(_button("August 2011"));
_click(_link("Aug"));
_click(_link("2011"));
_click(_button("OK"));
_click(_span("30"));
I have issue at the second line.
Try
_click(_div("/x-trigger-index-0 x-form-trigger x-form-date-trigger/"));
instead of
_click(_div("x-trigger-index-0 x-form-trigger x-form-date-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-date-trigger-over"));
Regards,
Narayan
Thanks for the immediate reply. It's working fine now.