lib/page-object/element_locators.rb in page-object-0.3.2 vs lib/page-object/element_locators.rb in page-object-0.4.0

- old
+ new

@@ -316,7 +316,67 @@ # * :xpath => Watir and Selenium # def h3_element(identifier) platform.h3_for(identifier.clone) end + + # + # Finds a h4 + # + # @param [Hash] identifier how we find a H4. 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 h4_element(identifier) + platform.h4_for(identifier.clone) + end + + # + # Finds a h5 + # + # @param [Hash] identifier how we find a H5. 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 h5_element(identifier) + platform.h5_for(identifier.clone) + end + + # + # Finds a h6 + # + # @param [Hash] identifier how we find a H6. 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 h6_element(identifier) + platform.h6_for(identifier.clone) + end + + # + # Finds a paragraph + # + # @param [Hash] identifier how we find a paragraph. 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 paragraph_element(identifier) + platform.paragraph_for(identifier.clone) + end end end \ No newline at end of file