Module: Webrat::Locators

Defined in:
lib/cucumber/webrat/table_locator.rb

Defined Under Namespace

Classes: TableLocator

Instance Method Summary collapse

Instance Method Details

#table_at(id_or_selector) ⇒ Object

Returns a Table element located by id_or_selector, which can be a DOM id or a CSS selector.



54
55
56
# File 'lib/cucumber/webrat/table_locator.rb', line 54

def table_at(id_or_selector)
  TableLocator.new(@session, dom, id_or_selector).locate!
end