I am a newbie to this tool. I have installed ruby (ruby182-15.exe) and
then ran the watir install (gem install watir). I then went to run a
simple example which I downloaded and it crashes. The reason I used
182-15 is that I read it was the only version which supports web modal
dialog pages see
http://wtr.rubyforge.org/install.html
..."However, if you wish to use Watir’s support for the IE
showModalDialog then you must use Ruby 1.8.2-15 (or 1.8.2-14) and not
a more recent version. This dialog is the one that is posted with the
showModalDialog() JavaScript command and is supported with Watir’s
ie.modal_dialog command.."
Below is the crash dump. Now if someone else can suggest a better
alternative I am happy to try it.
Thanks
Marco
>ruby google_search.rb
d:/program files/ruby/lib/ruby/gems/1.8/gems/windows-api-0.2.3/lib/
windows/api.rb:331:in `initialize': GetProcAddress() failed for
'GetLayeredWindowAttributes', 'GetLayeredWindowAttributesA' and
'GetLayeredWindowAttributesW': The specified procedure could not be
found. (Windows::API::Error)
from d:/program files/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.8.3/
lib/windows/window.rb:40:in `new'
from d:/program files/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.8.3/
lib/windows/window.rb:40
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require__'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require'
from d:/program files/ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.8/
lib/win32/process.rb:8
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require__'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require'
from d:/program files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/
ie-process.rb:1
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require__'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require'
from d:/program files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./
watir.rb:47
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require__'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
`activate'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:23:in `require'
from google_search.rb:15
>Exit code: 1