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.

How to close an Alert popped up on browser before the Page fully loaded

tgiangntgiangn Members
edited April 2014 in Sahi - Open Source
Hi all,
How to automatically clear the alert before a web page being loaded?
Here is code for the page test.html
<script>alert('Try to close it');</script>
<html>
<body>
You had to click ok to close the alert :)
</body>
</html>
_clearLastAlert() doesn't work this case.

Your response will be greatly appreciated.
Regards,
G
Sign In or Register to comment.