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 handle confirm message box

thakurpravinthakurpravin Members
edited November -1 in Sahi - Open Source
Hi,
I need a help regarding handling confirm message box using sahi.

For example, when we are going to yahoo mail and trying to delete the message from spam box clicking on "Empty" option, one confirm message box pops up with message "are you sure you want to permanently delete the content" with ok and cancel button.

Using sahi i tried with _expectconfirm(label,value). I am able to proceed furthur. But I am trying to find out whether this box appears or not?
Using _expectconfirm even though if confirm message box doesn't appear, script is treating the value as TRUE and proceeding furthur. So, I am not able to find out the way to grap the confirm message box (whether its appearing or not?).

As this confirm message box is the browser event sahi script is unable to identify the object and record it.
Please help me how to handle such conditions...
thanks in advance..

Comments

  • Hi Narayan/Pankaj,

    Can you please have a look on this issue.

    Kindly lemme know if it can be resolved.

    Thanks.
Sign In or Register to comment.