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



54
55
56
# File 'lib/watir-webdriver/elements/iframe.rb', line 54

def element_class
  IFrame
end

#to_aObject



50
51
52
# File 'lib/watir-webdriver/elements/iframe.rb', line 50

def to_a
  element_indexes.map { |idx| element_class.new(@parent, tag_name: @selector[:tag_name], :index => idx ) }
end