Method: Capybara::Node::Matchers#has_table?
- Defined in:
- lib/capybara/node/matchers.rb
#has_table?(locator = nil, **options, &optional_filter_block) ⇒ Boolean
Checks if the page or current node has a table with the given id or caption:
page.has_table?('People')
554 555 556 |
# File 'lib/capybara/node/matchers.rb', line 554 def has_table?(locator = nil, **, &optional_filter_block) has_selector?(:table, locator, **, &optional_filter_block) end |