Search the web
Sign In
New User? Sign Up
RubyOnRails · Ruby on Rails
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
help in watir   Message List  
Reply | Forward Message #96 of 107 |
hi
I have installed Ruby 1.8.5-21 and also installed the watir 1.5.0 gem. but when
i use the run the below program
[code]
require 'watir'
include Watir


# use watir gem
test_site = 'http://www.google.com' # set a variable
ie =Watir::IE.new # open the IE browser
ie.goto(test_site) # load url, go to site
ie.text_field(:name, "q").set("pickaxe") # load text "pickaxe" into search
field named "q"
ie.button(:name, "btnG").click # "btnG" is the name of the Search
button, click it

if ie.text.include?("Programming Ruby")
puts "Test Passed. Found the test string: 'Programming Ruby'."
else
puts "Test Failed! Could not find: 'Programming Ruby'"
end
[/code]


i get the below error

./watir.rb:4: uninitialized constant Watir (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from watir.rb:2
>Exit code: 1

please tell me how to prevent this error.

Thanks in Advance
K Sathya Narayanan



[Non-text portions of this message have been removed]




Fri May 30, 2008 10:31 am

sathya_k_83
Offline Offline
Send Email Send Email

Forward
Message #96 of 107 |
Expand Messages Author Sort by Date

hi I have installed Ruby 1.8.5-21 and also installed the watir 1.5.0 gem. but when i use the run the below program [code] require 'watir' include Watir # use...
sathya narayanan
sathya_k_83
Offline Send Email
May 30, 2008
12:48 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help