Class: Watir::Forms

Inherits:
ElementCollections show all
Defined in:
lib/watir/collections.rb

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



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

def element_class; Form; end

#element_tagObject



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

def element_tag; 'FORM'; end

#lengthObject



371
372
373
# File 'lib/watir/collections.rb', line 371

def length
  @container.document.getElementsByTagName("FORM").length
end