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.
Sahi 17-5: Javascript click not working in IE8 on Win7
Hi,
On the latest Sahi version there has been a change in the concat.js file with respect to clicking on links. The change unfortunately leads to an issue with javascript links like this:
<a onfocus="setFocus(this.id);" onclick="var form=formOf(this);form.value='controlForm:_id1';return iceSubmit(form,this,event);" onblur="setFocus('');" id="controlForm:_id1" href="javascript:;" class="iceCmdLnk blMenuItem blMenuSubItem1">Update</a>
These kind of links are not clickable by Sahi anymore (on IE8 with Win7).
If I change line 736-739 in concat.js back to previous version sahi can click on the link above without problems:
if (this.trim((""+link.href)).indexOf("javascript:") != 0) el.click();
} else {
el.click();
}
Cheers Sebastian.
On the latest Sahi version there has been a change in the concat.js file with respect to clicking on links. The change unfortunately leads to an issue with javascript links like this:
<a onfocus="setFocus(this.id);" onclick="var form=formOf(this);form.value='controlForm:_id1';return iceSubmit(form,this,event);" onblur="setFocus('');" id="controlForm:_id1" href="javascript:;" class="iceCmdLnk blMenuItem blMenuSubItem1">Update</a>
These kind of links are not clickable by Sahi anymore (on IE8 with Win7).
If I change line 736-739 in concat.js back to previous version sahi can click on the link above without problems:
if (this.trim((""+link.href)).indexOf("javascript:") != 0) el.click();
} else {
el.click();
}
Cheers Sebastian.
Comments
Thanks,
Narayan