RE: [Wtr-general] Watir::FactoryMethods#file_fields

2005-07-27 Thread Paul Rogers
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: wtr-general@rubyforge.org
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
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


RE: [Wtr-general] Watir::FactoryMethods#file_fields

2005-07-27 Thread Zeljko Filipin
Thanks, I also have file_field, but I need file_fields (plural). :)

Zeljko

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, July 27, 2005 7:20 PM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields

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: wtr-general@rubyforge.org
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
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


RE: [Wtr-general] Watir::FactoryMethods#file_fields

2005-07-27 Thread Paul Rogers
Ah. I'll see how difficult it is to add!

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin
Sent: 27 July 2005 15:08
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields


Thanks, I also have file_field, but I need file_fields (plural). :)

Zeljko

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, July 27, 2005 7:20 PM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields

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: wtr-general@rubyforge.org
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
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


RE: [Wtr-general] Watir::FactoryMethods#file_fields

2005-07-27 Thread Paul Rogers
Ok, this time Im sure I got it right  ;-). Its in cvs with a very basic
unit test.

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin
Sent: 27 July 2005 15:08
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields


Thanks, I also have file_field, but I need file_fields (plural). :)

Zeljko

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, July 27, 2005 7:20 PM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields

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: wtr-general@rubyforge.org
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
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


RE: [Wtr-general] Watir::FactoryMethods#file_fields

2005-07-27 Thread Zeljko Filipin
Thanks, I will try it at once.

Zeljko 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Thursday, July 28, 2005 12:25 AM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields

Ok, this time Im sure I got it right  ;-). Its in cvs with a very basic
unit test.

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin
Sent: 27 July 2005 15:08
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields


Thanks, I also have file_field, but I need file_fields (plural). :)

Zeljko

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, July 27, 2005 7:20 PM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields

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: wtr-general@rubyforge.org
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
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general