Skip to content
bret edited this page Sep 13, 2010 · 2 revisions

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.

Clone this wiki locally