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.

Unable to record action on popup window...

mohit198mohit198 Members
edited November -1 in Sahi - Open Source
Hi,

I am unable to record action on popup window. how to handle popup in SAHI.
Exp. On screen there is a First name and Last name text box, If i enter only first name and click on Add button, system gives error message "Please enter Full Last Name" with "OK" button on pop up window.
I tried to mouse hover on the window but sahi doesnt recognize this.

I have used _lastAlert to get the message but how to click on "OK" button while playback.

Please help.

Thanks in Advance..
Mohit

Comments

  • Hi mohit198,

    Javascript alerts are handled well by Sahi.

    When a button is clicked and a alert box appears, Sahi silently acts as if "OK" was clicked on that dialog, without showing that dialog.

    Sahi does not display alerts during playback.

    Please go through the following link,

    http://sahi.co.in/w/_lastalert

    This might help you.

    Regards,
    Theeran.
  • Thanks Theeran
    Its working finr now
Sign In or Register to comment.