public
Description: A Framework for Watir
Home | Edit | New

Methods

A new method, generated with WatirCraft’s method generator, will have this
skeleton:

module projectname
  module Methods
    def methodname
      # Place the code for your method here.

    end
  end
end

Methods can be used with rspec tests, cucumber steps and can be referenced from
other methods.

Methods have access to @browser, @site and any other execution methods that are defined.

Last edited by bret, Tue Apr 14 11:36:13 -0700 2009
Home | Edit | New
Versions: