Method: Webdrone::XPath#fieldset

Defined in:
lib/webdrone/xpath.rb

#fieldset(locator) ⇒ Object

Match any fieldset element.

Parameters:

  • locator (String)

    Legend or id of the fieldset



47
48
49
50
# File 'lib/webdrone/xpath.rb', line 47

def fieldset(locator)
  locator = locator.to_s
  descendant(:fieldset)[attr(:id).equals(locator) | child(:legend)[string.n.is(locator)]]
end