18 January 2026:


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.

To overcome Java Script Errors

BhavithaBhavitha Members
edited November -1 in Sahi - Open Source
Hi Narayan,

In our scripts we have certain pop-ups where we need to assert few values, when we click on the icon and assert the values inside pop and try to close it, there comes a java script error pop up stating as Access in denied. Thus Script fails unless we click "OK" manually.

The log shows as :
undefined: Access is denied.
(http://192.168.99.103/cspi/verificationCaseSearch.do:825)
No trace available
Click for browser script at

This is not an application error because when we do it manually, this error does not comes.

Is it because we have injected this code in Inject_top.txt for VB script pop-ups :-

<script language="vbscript">
function MsgBox()
return True
end function
</script>

(The above solution was provided in this post : http://sahi.co.in/forums/viewtopic.php?id=1921)

Thanks in Advance

Regards,
Bhavitha

Comments

  • Hi Narayan,

    I removed the function from Inject_top and checked, its not the problem with this function.

    Can u suggest why these Java errors come only when we click on certain icons and it appears in Orange colour in log. Script fails unless we Manually click on the Java error pop-up.
Sign In or Register to comment.