lib/page-object/nested_elements.rb in page-object-0.3.1 vs lib/page-object/nested_elements.rb in page-object-0.3.2

- old
+ new

@@ -66,7 +66,19 @@ end def list_item_element(identifier={:index => 0}) @platform.list_item_for(identifier) end + + def h1_element(identifier={:index => 0}) + @platform.h1_for(identifier) + end + + def h2_element(identifier={:index => 0}) + @platform.h2_for(identifier) + end + + def h3_element(identifier={:index => 0}) + @platform.h3_for(identifier) + end end end