Hi Wesley, There is a different technique to handling popups without autoit - This will act only on the current ie window which watir is using not any other browser. The below will handle alert, confirm , prompt, auth dialog box.
Usage: require 'watir' iewin = Watir::IE.new iewin.goto("http://www.w3schools.com/js/tryit_view.asp? filename=tryjs_alert") iewin.button(:value, "Show alert box").click_no_wait txt = iewin.clickprompt() puts txt #prints the popup text You would have to add the below code to C:\ruby\lib\ruby\gems\1.8\gems \watir-1.6.2\lib\watir\ie-class.rb ( add into module Watir, class IE http://pastie.org/595060 Thanks, Tony --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---