Class: WatirNokogiri::FrameCollection

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

Instance Method Summary collapse

Methods inherited from ElementCollection

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

Constructor Details

This class inherits a constructor from WatirNokogiri::ElementCollection

Instance Method Details

#element_classObject



110
111
112
# File 'lib/watir-nokogiri/elements/generated.rb', line 110

def element_class
  Frame
end

#to_aObject



70
71
72
# File 'lib/watir-nokogiri/elements/frame.rb', line 70

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