class Capybara::PomPom::TableRow

Public Class Methods

column(name, options) click to toggle source
# File lib/capybara/pompom/table_row.rb, line 13
def self.column(name, options)
  self.finders[name] = ElementFinder.new(:find, "td:nth-child(#{options.fetch(:at_index)})")
end

Public Instance Methods

method_missing(name, *args) click to toggle source
Calls superclass method Capybara::PomPom::Finder#method_missing
# File lib/capybara/pompom/table_row.rb, line 5
def method_missing(name, *args)
  if self.finders.has_key?(name)
    return self.finders[name].get(row)
  end

  super
end