Method: Webdrone::XPath#checkbox

Defined in:
lib/webdrone/xpath.rb

#checkbox(locator) ⇒ Object

Match any ‘input` element of type `checkbox`.

Parameters:

  • locator (String)

    Label, id, or name of the checkbox to match


92
93
94
95
# File 'lib/webdrone/xpath.rb', line 92

def checkbox(locator)
  locator = locator.to_s
  locate_field(descendant(:input)[attr(:type).equals('checkbox')], locator)
end