When I do the following, the Javascript Dialog does not close (in fact, the button click is stuck and does not go any further). Is there a work around?
irb(main):001:0> require 'watir-classic'
irb(main):002:0> b = Watir::Browser.new
irb(main):003:0> b.goto 'file:///c:/test.html'
irb(main):004:0> b.button(:value => "Press").click
Watir 3.2.0
Ruby 1.9.3