Hi,

When ever i am creating methods in watir... it seems that the program
is skipping the newly created method.
Why do you think it is happening?
The following is the snippet of the code i have written. Initially the
method named test_login_page was never called. Then after a while it
started working.
Then when i created another method new_cust_perform now that does not
get called. What should i do? Where am i going wrong?
Please help.

require 'watir'
require 'rubygems'
require 'URI'
require 'watir/testcase'
require 'create_new'



 def test_start

        # $ie.speed = :zippy
        puts "Beginning of test: BERT."
        $ie = Watir::IE.new
        $ie.goto $site

end

 def test_login_page

         begin
                assert($ie.text_field(:name, "username").exists?,"text
user does not exist on " + $ie.url)
                puts 'Assertion passed'

        rescue StandardError => ex
                print "\n\n Error => " + ex + "\n\n"
                raise

        ensure
        end

        $ie.text_field(:name, "username").set("sowmya")
        $ie.text_field(:name,"password").set("qa1234")
        $ie.button(:value, "Login").click

end

  def new_cust_perform
        new_cust_create

  end

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to