Method: Webdrone::XPath#table

Defined in:
lib/webdrone/xpath.rb

#table(locator) ⇒ Object

Match any table element.

Parameters:

  • locator (String)

    Caption or id of the table to match

  • options (Hash)

    a customizable set of options



144
145
146
147
# File 'lib/webdrone/xpath.rb', line 144

def table(locator)
  locator = locator.to_s
  descendant(:table)[attr(:id).equals(locator) | descendant(:caption).is(locator)]
end