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 Click on OK button for Javascripts Alert in Sahi

METIsatishMETIsatish Members
edited July 2013 in Sahi Pro
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

Answers

  • Pratyush_TytoPratyush_Tyto Members
    edited July 2013
    Hi Satish,
    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.
Sign In or Register to comment.