I have found work around for my problem. I use the following methods def check_for_popups
loop do popup = autoit.WinWait('Confirm, '', 0.1) if popup == 1 autoit.Send('{ENTER}') end end end and create new process with this method: @pid = Process.create( :app_name => 'ruby popup_closer.rb', :creation_flags => Process::DETACHED_PROCESS ) So in my case popup should be clicked almost instantly, otherwise tests will hang. Is this expected behavior? -- 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 To unsubscribe from this group, send email to watir-general+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.