Method: PageObject::ElementLocators#h2_element

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

#h2_element(identifier = {:index => 0}) ⇒ Object

Finds a h2

Parameters:

  • identifier (Hash) (defaults to: {:index => 0})

    how we find a H2. You can use a multiple paramaters by combining of any of the following except xpath. It defaults to => 0 which will return the first h2. The valid keys are:

    • :class => Watir and Selenium

    • :id => Watir and Selenium

    • :index => Watir and Selenium

    • :name => Watir and Selenium

    • :xpath => Watir and Selenium



638
639
640
# File 'lib/page-object/element_locators.rb', line 638

def h2_element(identifier={:index => 0})
  platform.h2_for(identifier.clone)
end