I have a code written in ruby as follows:

require 'watir/ie'
#require 'watir/process'
require 'test/unit/assertions'
require 'watir/watir_simple'

#include Watir::Simple

test_site = 'http://google.co.in'
$ie = Watir::IE.new
$ie.goto(test_site)
$ie.maximize
$ie.click_button_with_name("btnG")

where click_button_with_name is a method from the Watir::Simple class.

When I run the above code I get an error
C:/Lmg_test/ruby/Practice/p1.rb:16: undefined method
`click_button_with_name' fo
r #<Watir::IE:0x32db95c> (NoMethodError)

Kindly let me know if I need to require and include any other  ruby
library file apart from the one already in the script.

Thanks & Regards
Chandrika

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to