Class: Watir::FileFields

Inherits:
ElementCollections show all
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

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_classObject



88
# File 'lib/watir/collections.rb', line 88

def element_class; FileField; end

#lengthObject

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