Method: Webdrone::XPath#option

Defined in:
lib/webdrone/xpath.rb

#option(locator) ⇒ Object

Match an option element.

Parameters:

  • name (String)

    Visible text of the option



132
133
134
135
# File 'lib/webdrone/xpath.rb', line 132

def option(locator)
  locator = locator.to_s
  descendant(:option)[string.n.is(locator)]
end