Here's how we are doing the object repository in our projects-
You could create a class file which stores all the objects for a page
or set of pages.
example-
class Page1
def initialize(browser)
@textfield = browser.text_field(:id,"id_to_get_field")
@var = ..........
# all variables that are objects on the page
end
end
Then you could instantiate the object in all test classes.
to use a particular object just use ... Page1obj.textfield to get the
textfield.
-Tony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---