From bptremblay at avaya.com Tue Jul 29 18:22:56 2008 From: bptremblay at avaya.com (Tremblay, Benjamin P. (Ben)) Date: Tue, 29 Jul 2008 16:22:56 -0600 Subject: [SafariWatir-general] How to dismiss a dialog when ruby thread is blocked by AppleScript? Message-ID: Hello scripters, I am very new to Ruby. And AppleScript is so old, it's new too. I'm looking at the colbert script in safariwatir_script.rb. The message page on Colbert's site now pops up a JavaScript alert. If I tell SafariWatir to click a button that submits a form that immediately runs an onsubmit handler and immediately pops up an alert, HOW DO I DISMISS THIS? The Ruby script looks blocked while it waits for the appscript module to return. Could I spawn a Thread in Ruby to manage appscript, and then monitor it from another thread? Any thoughts would be swell. Thanks. Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: