Class: Watir::IFrameCollection

Inherits:
ElementCollection show all
Defined in:
lib/watir-webdriver/elements/iframe.rb,
lib/watir-webdriver/elements/generated.rb

Direct Known Subclasses

FrameCollection

Instance Method Summary collapse

Methods inherited from ElementCollection

#[], #each, #first, #initialize, #last, #length

Constructor Details

This class inherits a constructor from Watir::ElementCollection

Instance Method Details

#element_classObject



61
62
63
# File 'lib/watir-webdriver/elements/iframe.rb', line 61

def element_class
  IFrame
end

#to_aObject



57
58
59
# File 'lib/watir-webdriver/elements/iframe.rb', line 57

def to_a
  (0...elements.size).map { |idx| element_class.new @parent, :index => idx }
end