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.

_expectAlert() function

rich.nurrerich.nurre Members
edited November -1 in Sahi - Open Source
First off, I would like to say how stoked I am about sahi. I have only been using it a few days to write tests for an advanced AJAX application and already have been able to write some very effective tests quickly. I used to use Selenium IDE/RC, but already like sahi much more. Big thanks to the team for making such a great tool!

I was wondering if there is an _expectAlert() function similar to _expectConfirm() and _expectPrompt()? I did not see anything in the API documentation about it, but it seems that would be a useful function to have.

I need to verify that some text is present in an alert and automatically click ok to close the alert, then let the process continue. Is there another approach that I should be using?

Thanks in advance!

-rich
Sign In or Register to comment.