Hi

After a few months of Ruby and Watir sitting around idle, I've decided to
give Watir a serious workout and ran into the problem with URLs inside div
elements. I eventually got to the info on xpath and element_by_xpath. After
following the thread on this topic from Dec 2005, I've done the following:

1. downloaded and installed the latest stable versioin of Ruby
2. downloaded the latest tar file from the repository and extracted the
contents to my Watir install dir,
3. replaced Ruby files element.rb and functions.rb with versions from the
Watir repository
4. replaced watir.rb in C:\ruby\lib\ruby\site_ruby\1.8 with the latest
version from the Watir installation.

I suspect step 4 is not the right thing to do. Can anyone confirm this? What
should I be doing about watir.rb in the Ruby installation dir?

Anyway, when I run my test script I get the following error message

c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1273:in `initialize': LoadLibrary:
c:\ruby\lib\ruby\site_ruby\1.8\watir\IEDialog\Release\IEDialog.dll
(RuntimeError)
        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1273:in `new'
        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1273
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
        from G:/workspace/web_pages/trial.rb:1

This is my first Ruby script so any advice on getting this working will be
much appreciated.

Regards

Chris
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to