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.
pop up not recognized
Hi guys,
I have problems with popups dialog. I have a lot of them ( OK, OK/Cancel,etc) but i'm not able to recognize them during recording. The steps where i click on popup buttons are not recorded at all !
Are popus supported?
How can i click on buttons on popup?
thanx
I have problems with popups dialog. I have a lot of them ( OK, OK/Cancel,etc) but i'm not able to recognize them during recording. The steps where i click on popup buttons are not recorded at all !
Are popus supported?
How can i click on buttons on popup?
thanx
Answers
Please use following code to recognize your clicks.
_popup("Window Title")._click(_link("Click me"));
Regards,
Pratik Shah
In case of javascript alert, confirmation or prompt box, please go-through the following urls:
http://sahi.co.in/w/_lastalert
http://sahi.co.in/w/_expectConfirm
http://sahi.co.in/w/_lastconfirm
http://sahi.co.in/w/_expectPrompt
--
Thanks,
Kshitij Gupta
it's a javascript confirmation ( yes/no)
basically, i click on a "send" button and after that a message like "are you sure ...." with options "yes/no" is displayed. Well, i'm not able to catch that message, and the message is sent by default.
seems that "yes" option is selected ba default!
kshitijitu, i tried your solutions but no luck :-(
You can send me your email id to "kshitijitu@gmail.com". I will send you one exe file. you can execute that exe to click yes.
But I have a lot of confirmation boxes ! yes/no/cancel. Do you mean I need some .exe for any of them?
http://sahi.co.in/w/_lastalert
http://sahi.co.in/w/_expectConfirm
http://sahi.co.in/w/_lastconfirm
http://sahi.co.in/w/_expectPrompt
most of the confirmation box should work with sahi api.
i need some help to manage the code below!
I'm able to click ok/cancel on the first button( "Try it now"), but cannot manage the alert that this click produces!
Any idea?
<form name=myform>
<input type=button value="Try it now"
onClick="if(confirm('Format the hard disk?'))
alert('You are very brave!');
else alert('A wise decision!')">
</form>