Method: XPath::HTML#select

Defined in:
lib/xpath/html.rb

#select(locator) ⇒ Object

Match any ‘select` element.

Parameters:

  • locator (String)

    Label, id, or name of the field to match



85
86
87
88
# File 'lib/xpath/html.rb', line 85

def select(locator)
  locator = locator.to_s
  locate_field(descendant(:select), locator)
end