Method: Watir::Adjacent#siblings

Defined in:
lib/watir/adjacent.rb

#siblings(opt = {}) ⇒ Object

Returns collection of siblings of current element, including current element.

Examples:

browser.text_field(name: "new_user_first_name").siblings.size
#=> 59


82
83
84
# File 'lib/watir/adjacent.rb', line 82

def siblings(opt = {})
  parent.children(opt)
end