WIN32OLERuntimeError: failed to create WIN32OLE object from `InternetExplorer.Application'

559 views
Skip to first unread message

vicky

unread,
Apr 25, 2011, 6:26:23 AM4/25/11
to Watir General
Hi folks,
I have written some scripts in watir to automate the
flow.till today i able to execute it and getting an expected result.
But since morning i am facing an error. i don't know whats wrong with
it. I have re-installed the ruby on my machine. but the same error am
facing. refer the below error


C:\Documents and Settings\vikrant.khemkar>irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'watir'
=> true
irb(main):003:0> ie = Watir::IE.new
WIN32OLERuntimeError: failed to create WIN32OLE object from
`InternetExplorer.Application'
HRESULT error code:0x800704a6

from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/
ie-class.rb:165:in `initialize'

from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/
ie-class.rb:165:in `new'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/
ie-class.rb:165:in `create_brow
ser_window'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/
ie-class.rb:89:in `_new_window_
init'
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/
ie-class.rb:85:in `initialize'
from (irb):3:in `new'
from (irb):3
irb(main):004:0> require 'win32ole'
=> false
irb(main):005:0> require 'WIN32OLE'
LoadError: 127: The specified procedure could not be found. -
Init_WIN32OLE
C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/win32ole/
WIN32OLE.so
from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.8.0/lib/watir/
win32ole/WIN32OLE.so
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:29:in `require'
from (irb):5
irb(main):006:0> exit

Please help me out.

Thanks in Advance
Vikrant

Reply all
Reply to author
Forward
0 new messages