Hi,

I have just started learning Watir.
Please let me know what is wrong

require 'test/unit'
require "watir"
require 'watir/testcase'
require 'watir/watir_simple'

class Login < Watir::TestCase
    def test_login
      ie=Watir::Browser.new
     s = Watir::Simple
      ie.goto("google.com")
      ie.link(:href,"some_link1").click
      ie.link(:href,"some_link2").click
      s.assert_text_in_body("Please enter your Username",nil)
end
  end



OUTPUT:

 1) Error:
test_login(Login):
NoMethodError: undefined method `assert_text_in_body' for
Watir::Simple:Module
    test.rb:14:in `test_login'

--~--~---------~--~----~------------~-------~--~----~
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