Class: CapybaraPageObject::Table

Inherits:
Base
  • Object
show all
Defined in:
lib/table.rb

Instance Attribute Summary

Attributes inherited from Base

#source

Instance Method Summary collapse

Methods inherited from Base

#initialize, #path, #prefix, #visit

Methods included from Extractors::PageLevel

#forms, #meta_description, #meta_keywords, #tables, #title

Methods included from Extractors::Common

#all, #data, #extract, #find

Constructor Details

This class inherits a constructor from CapybaraPageObject::Base

Instance Method Details

#headers(attr = {}) ⇒ Object



9
10
11
# File 'lib/table.rb', line 9

def headers(attr={})
  extract('th', attr)
end

#rows(attr = {}) ⇒ Object



5
6
7
# File 'lib/table.rb', line 5

def rows(attr={})
  extract('tr', attr)
end