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.
_check
Hi!
I look at your _check and saw that it just click element
Sahi.prototype._check = function (el) {
if (el.checked) return;
this._click(el);
}
But what if we hang on onChange or onClick? And there try to look is this element checked? We saw that our element is NOT checked, just because it is not happened yet. Could not be it better to do something like this:
Sahi.prototype._check = function (el) {
if (el.checked) return;
el.checked = true;
this._click(el);
}
Tested under all browsers, Windows 7 x64.
I look at your _check and saw that it just click element
Sahi.prototype._check = function (el) {
if (el.checked) return;
this._click(el);
}
But what if we hang on onChange or onClick? And there try to look is this element checked? We saw that our element is NOT checked, just because it is not happened yet. Could not be it better to do something like this:
Sahi.prototype._check = function (el) {
if (el.checked) return;
el.checked = true;
this._click(el);
}
Tested under all browsers, Windows 7 x64.