def confirm(bool, &block)
      blk = lambda { bool }

      listener.add_listener(:confirm, &blk)
      yield
      listener.remove_listener(:confirm, blk)
    end
def confirm(bool, &block)
      blk = lambda { bool }

      listener.add_listener(:confirm, &blk)
      yield
      listener.remove_listener(:confirm, blk)
    end
Specify a boolean value to click either 'OK' or 'Cancel' in any confirm
 dialogs that might show up during the duration of the given block.

 (Celerity only)

 @param [Boolean] bool true to click 'OK', false to click 'cancel'
 @param [Proc] block A block that will trigger the confirm() call(s).