
Adding a Class for site specific objects
Reported by Jim Matthews | April 7th, 2009 @ 03:52 PM | in 0.5.0
Document where/how is the best place to add a new class for site specific objects that fits in with your plans for WatirCraft. Where is the best place to add the class definition and how do you instantiate it so it can be used throughout the site.
An example of such a class might be a shopping cart that is manipulated from a number of different pages.
Comments and changes to this ticket
-
bret (at watircraft) April 7th, 2009 @ 04:16 PM
This is what the site.rb file is for. You add your own method to your site and you can access the site from your tests as "site".
-
bret (at watircraft) April 9th, 2009 @ 07:36 PM
- Milestone set to 0.5.0
- State changed from new to open
New "methods" feature should make this more clear.
-
bret (at watircraft) April 10th, 2009 @ 11:27 AM
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A framework for web testing.