Hi all, I was able to have some success using the following code:
# popup_closer.rb require 'win32ole' begin autoit = WIN32OLE.new('AutoItX3.Control') loop do autoit.ControlClick("Windows Internet Explorer",'', 'OK') autoit.ControlClick("Security Information",'', '&Yes') autoit.ControlClick("Security Alert",'', '&Yes') autoit.ControlClick("Security Warning",'', '&Yes') sleep 2 end rescue Exception => e puts e end ############################################## #main_script.rb # popup handler @pid = Process.create( :app_name => 'ruby common_libs\\popup_closer.rb', # or wherever you placed the script :creation_flags => Process::DETACHED_PROCESS ).process_id at_exit{ Process.kill(9,@pid) } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---