Class: Watir::FrameCollection

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

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



101
102
103
# File 'lib/watir-webdriver/elements/generated.rb', line 101

def element_class
  Frame
end

#to_aObject



83
84
85
# File 'lib/watir-webdriver/elements/frame.rb', line 83

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