Method: Webdrone::XPath#select

Defined in:
lib/webdrone/xpath.rb

#select(locator) ⇒ Object

Match any select element.

Parameters:

  • locator (String)

    Label, id, or name of the field to match



82
83
84
85
# File 'lib/webdrone/xpath.rb', line 82

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