Class: Cucumber::Salad::Widgets::AutoTable

Inherits:
BaseTable show all
Defined in:
lib/cucumber/salad/widgets/auto_table.rb

Defined Under Namespace

Classes: Row

Instance Attribute Summary

Attributes inherited from Widget

#root

Instance Method Summary collapse

Methods inherited from BaseTable

#to_table

Methods inherited from Widget

find_in, #has_action?, #initialize, #inspect, present_in?, #reload, root, selector, #to_s

Methods included from Cucumber::Salad::WidgetMacros

#action, #widget, #widget_delegator

Methods included from Cucumber::Salad::WidgetContainer

#has_widget?, #widget

Constructor Details

This class inherits a constructor from Cucumber::Salad::Widgets::Widget

Instance Method Details

#footersObject

don’t include footer in to_table, because footer column configuration is very often different from the headers & values.



8
9
10
# File 'lib/cucumber/salad/widgets/auto_table.rb', line 8

def footers
  @footers ||= root.all(footer_selector).map { |n| node_text(n) }
end