Hi, I'm kinda new to ruby and I have a question relating to defining
an object type. I'm trying to build a flexible set of helper objects
to support a test fixture we are building and have a question:

I currently have the following
                  @ctlObjIdentType = "id:"
                  @ctlObjIdentValLoginField = "txtloginfield"
              $browser.text_field(@ctlObjIdentType
@ctlObjIdentValLoginField).set(userID)

What I also wanted to do was build the function out where I could also
specifiy the object type, 'text_field' in this case. so that it might
be something analogous to:
                    $browser.@ctlObjType(@ctlObjIdentType,
@ctlObjIdentValLoginField).set(userID)

if I could do this or something similar I would be able to reduce our
validation helper code size and complexity considerably by moving the
object type definitions into the test data. What I cannot work out, is
the syntax to use, if indeed this is possible?

Anyone have any insights?



-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to