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.
How to Click on OK button for Javascripts Alert in Sahi
hi,
I have Recorded Sahi Scripts in Java mode and want to Run it on Eclipse
I want Alert button to be clicked OK
Please help me ..
thanks,
satish
I have Recorded Sahi Scripts in Java mode and want to Run it on Eclipse
I want Alert button to be clicked OK
Please help me ..
thanks,
satish
Answers
Sahi automatically handles alerts from your application and doesn't show them. You wont need to click on 'Ok'.
If you need to get the last alert message, you need to use the lastAlert() API.
Please refer to http://sahi.co.in/w/_lastalert for more details.
Regards.