Hello Sivam, What browser action is causing the security alert to appear ?
There are two possible solutions: 1) use "click_no_wait" on the link, button, etc. that is causing the popup right before calling your method.(this will cause ruby to 'wait') 2) Put your method in a thread and call it before the link, button, etc. that is causing the popup and just use "click" Darryl On Sep 16, 3:58 am, sivam <sivamma...@gmail.com> wrote: > Hi, > For security alert i have used following code. > 1. Calling these function from main function > Watir.autoit.WinWait "Security Alert", "" > Watir.autoit.ControlClick "Security Alert", "", "&Yes" > > But some times before that security alert popup it opened first and > closed immediately. After that security pop up is getting open. Do we > have anything to wait the ruby for security alert. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com