I see this in my one:
Im not sure when it was added, I have watir.rb 1.194
# This is the main method for accessing a file field. Usually an
<input type = file> HTML tag.
# * how - symbol - how we access the field , :index, :id,
:name etc
# * what - string, int or re , what we are looking for,
#
# returns a FileField object
#
# Typical Usage
#
# ie.file_field(:id, 'up_1') # access
the file upload field with an ID of up_1
# ie.file_field(:name, 'upload') # access
the file upload field with a name of upload
# ie.file_field(:index, 2) # access
the second file upload on the page ( 1 based, so the first field is
accessed with :index,1)
#
def file_field( how , what )
return FileField.new(self , how, what)
end
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin
Sent: 27 July 2005 08:51
To: [email protected]
Subject: [Wtr-general] Watir::FactoryMethods#file_fields
Is there some reason that there is no method
Watir::FactoryMethods#file_fields (like Watir::FactoryMethods#buttons)?
It would be nice to have it.
Zeljko
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general