Hi Tiffany,

Thanks for the reply.
I have modified my code

require 'test/unit'
require "watir"
require 'watir/testcase'
require 'watir/watir_simple'
include Watir::Simple

  class Login < Watir::TestCase

     def  test_login
      ie=Watir::IE.new
       ie.goto("SOME LINK")
      ie.link(:href,"some link").click
      ie.link(:href,"some link").click
      ie.new_browser_at
("www.google.com")                               # WILL WORK
      ie.navigate_to
("www.google.com")                                      # WILL NOT
WORK
      ie.assert_text_in_body("Please enter your Username ",nil)    #
WILL NOT WORK
  end
  end


Some Methods like "new_browser_at" will work since @@browser variable
was initialized
But Methods like "navigate_to" and "assert_text_in_body' will not work
since browser class variable was not initialized.

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