Is something like this you're after?
def MethodWrapper.insert_text(text, fieldname,
description)
$ie.text_field(:name, fieldname ).value = text
puts ' ACTION: entered ' + text + ' in the ' + description + ' field'
#puts '\t- successful.'
end
$ie.text_field(:name, fieldname ).value = text
puts ' ACTION: entered ' + text + ' in the ' + description + ' field'
#puts '\t- successful.'
end
#MethodWrapper.insert_text('2005/04',"txtBilDetRepTo",'End
Date')
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of pj jha
Sent: Wednesday, November 16, 2005 7:20 PM
To: [email protected]
Subject: [Wtr-general] Problem in WATiRhi,
i am little bit confused, my confusion is as follow,
Suppose i want write the code for any control like textbox, drop down box etc in watir. I want to pass the field name associated with that control and the value which i have to entered(in case of textbox) or select(in case of dropdown box).
please send any sample code for above requirement.
thanks and regards,
--Prashant
Enjoy this Diwali with Y! India Click here
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
