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.
_focus() not working on IE9 (for datepicker?)
I have a form that's using datepicker and performing some onclick actions. In all other browsers, when I do the _click(_textbox("intime")), it's bringing focus properly to datepicker and the actions are being performed. However, when I use IE9, focus is not going to datepicker (I can set the values correctly, but my actions that rely on the focus of the datepicker are not kicking off).
I have found the Alternatives option on the Controller and found that using
_focus(_textbox("hasDatepicker[1]"));
vs
_focus(_textbox("intime"));
actually works.
However, I still wonder why the focus is not being set within IE, while all the other browsers work when I'm simply setting the value, and why _focus() doesn't work for the "id" of the textbox?
Regards,
Glenn
I have found the Alternatives option on the Controller and found that using
_focus(_textbox("hasDatepicker[1]"));
vs
_focus(_textbox("intime"));
actually works.
However, I still wonder why the focus is not being set within IE, while all the other browsers work when I'm simply setting the value, and why _focus() doesn't work for the "id" of the textbox?
Regards,
Glenn