Class | Celerity::ElementCollection |
In: |
lib/celerity/element_collection.rb
|
Parent: | Object |
Get the element at the given index. By default, this is 1-indexed to keep compatibility with Watir.
Also note that because of Watir‘s lazy loading, this will return an Element instance even if the index is out of bounds.
@param [Fixnum] n Index of wanted element, 1-indexed unless Celerity.index_offset is changed. @return [Celerity::Element] Returns a subclass of Celerity::Element
@yieldparam [Celerity::Element] element Iterate through the elements in this collection.
Get the first element in this collection. (Celerity-specific)
@return [Celerity::Element] Returns a subclass of Celerity::Element
Get the last element in this collection. (Celerity-specific)
@return [Celerity::Element] Returns a subclass of Celerity::Element