lib/page-object/element_locators.rb in page-object-0.3.1 vs lib/page-object/element_locators.rb in page-object-0.3.2
- old
+ new
@@ -271,7 +271,52 @@
# * :xpath => Watir and Selenium
#
def ordered_list_element(identifier)
platform.ordered_list_for(identifier.clone)
end
+
+ #
+ # Finds a h1
+ #
+ # @param [Hash] identifier how we find a H1. 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
+ #
+ def h1_element(identifier)
+ platform.h1_for(identifier.clone)
+ end
+
+ #
+ # Finds a h2
+ #
+ # @param [Hash] identifier how we find a H2. 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
+ #
+ def h2_element(identifier)
+ platform.h2_for(identifier.clone)
+ end
+
+ #
+ # Finds a h3
+ #
+ # @param [Hash] identifier how we find a H3. 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
+ #
+ def h3_element(identifier)
+ platform.h3_for(identifier.clone)
+ end
end
end
\ No newline at end of file