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.
how to record the security alerts that gets poped up??
hi,
how to record the security alerts that gets poped up while opening the secured site or any site??????? (for ex: while opening "yahoomail" it makes a popup like "about to leave the secured page do u want to continue if so click 'yes/No' ")
Can someone help me in this issue???
how to record the security alerts that gets poped up while opening the secured site or any site??????? (for ex: while opening "yahoomail" it makes a popup like "about to leave the secured page do u want to continue if so click 'yes/No' ")
Can someone help me in this issue???
Comments
Check if this works...
_expectConfirm("Put the text that appears on the message box", true);
Put this statement just before the event that triggers the message box.
setting the second parameter to "true" clicks "OK" and false will click "NO".
Regards,
Pankaj.
but its not working for the security alerts.
Is there any alternative for this problem????
Can you get any handles on the confirmation dialog via the DOM?
If something is displayed on a page, you can use the DOM to address and change that object.
Here's a tutorial:
http://www.w3schools.com/htmldom/default.asp
security.warn_entering_secure
security.warn_leaving_secure
security.warn_submit_insecure
Double click on these and make sure the value is false for these. Close and reopen browser and these popups should go away.
For Internet Explorer,
Go to Tools -> Internet Options -> Advanced -> Security sub heading:
Uncheck "Warn if switching between secure and not secure mode."
Restart browser.