Class: CapybaraPageObject::TableRow

Inherits:
Node
  • Object
show all
Defined in:
lib/element/table_row.rb

Instance Attribute Summary

Attributes inherited from Node

#source

Instance Method Summary collapse

Methods inherited from Node

#classes, from_string, #initialize

Methods included from HTML5Data

#data

Methods included from Collections

#forms, #key, #tables, #value

Methods included from Delegators

#all, #find, #text

Constructor Details

This class inherits a constructor from CapybaraPageObject::Node

Instance Method Details

#header?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/element/table_row.rb', line 3

def header?
  source.all('th').any?
end