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 cancel button by default in pop up windows

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

Thanks for your help , which you did in earlier posts.

Now i have a one more problem, which is very important for me to solve.
I need to click on cancel button by default.

As in sahi , Ok button is clicked by default in all pop up windows, and its doesn't show to us.
But in my case i want to click on cancel button. I can use _expectConfirm to click on this.
But my pop up windows are asynchronous. They may come any time , So i want to change the behaviour it self.

Please help me for this issue.

Thank
Vikky
Sign In or Register to comment.