1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'win32ole'

t = Thread.new do
  begin
    ie = WIN32OLE.new( "InternetExplorer.Application" )
    ie.visible = true
    ie.navigate( "http://google.com" )
    puts "OK"
  rescue Exception => e
    puts e.class
    puts e
    puts e.backtrace
  end
end

t.join