Method: PageObject::ElementLocators#checkbox_element

Defined in:
lib/page-object/element_locators.rb

#checkbox_element(identifier) ⇒ Object

Finds a checkbox

Parameters:

  • identifier (Hash)

    how we find a checkbox. You can use a multiple paramaters by combining of any of the following except xpath. The valid keys are:

    • :class => Watir and Selenium

    • :id => Watir and Selenium

    • :index => Watir and Selenium

    • :name => Watir and Selenium

    • :xpath => Watir and Selenium



235
236
237
# File 'lib/page-object/element_locators.rb', line 235

def checkbox_element(identifier)
  platform.checkbox_for(identifier.clone)
end