But the thing is... if you click first.. ff keeps waiting and doesn't 
return the control to ruby so in theory the only way to do it is call 
startClicker first and then click the button... but it's not working 
properly since what it is doing is just closing the JS window but not 
clicking on the button as you can see in this example:

require "firewatir"
$ff = FireWatir::Firefox.new()  #create an object to drive the browser
$ff.goto("http://w3schools.com/js/tryit_view.asp?filename=tryjs_confirm")
$ff.startClicker( "OK", 4)
$ff.button(:value,"Show a confirm box").click
sleep 3
$ff.close()
-- 
Posted via http://www.ruby-forum.com/.