Sha256: d577d8d4e0530852eaec20b5a8779d50a6889cc168cffe48552c350377508c61

Contents?: true

Size: 306 Bytes

Versions: 1

Compression:

Stored size: 306 Bytes

Contents

# watir/utils.rb

module Watir
  module Utils
      
    # Eval the provided block. If a WIN32OLERuntimeError is raised by the block,
    # return false.
    def suppress_ole_error
      begin
        yield
        true
      rescue WIN32OLERuntimeError
        false
      end
    end
    
  end
end
  
  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-1.6.5 lib/watir/utils.rb