Class: Watir::Frames

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



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

def element_class; Frame; end

#lengthObject



362
363
364
365
# File 'lib/watir/collections.rb', line 362

def length
  @container.document.getElementsByTagName("FRAME").length +
    @container.document.getElementsByTagName("IFRAME").length
end