Class: Watir::FileFields
- Inherits:
-
ElementCollections
- Object
- ElementCollections
- Watir::FileFields
- Defined in:
- lib/watir/collections.rb
Overview
this class accesses the file fields in the document as a collection normal access is via the Container#file_fields method
Instance Method Summary collapse
- #element_class ⇒ Object
-
#length ⇒ Object
number of file_fields browser.file_fields.length.
Methods inherited from ElementCollections
#[], #each, #first, #get_length_of_input_objects, #initialize, #inspect, #last, #show, #to_s
Constructor Details
This class inherits a constructor from Watir::ElementCollections
Instance Method Details
#element_class ⇒ Object
88 |
# File 'lib/watir/collections.rb', line 88 def element_class; FileField; end |
#length ⇒ Object
number of file_fields
browser.file_fields.length
91 92 93 |
# File 'lib/watir/collections.rb', line 91 def length get_length_of_input_objects(["file"]) end |