# File lib/xpath/html.rb, line 80 def table(locator, options={}) xpath = descendant(:table)[attr(:id).equals(locator) | descendant(:caption).contains(locator)] xpath = xpath[table_rows(options[:rows])] if options[:rows] xpath end