lib/page-object/nested_elements.rb in page-object-0.6.3 vs lib/page-object/nested_elements.rb in page-object-0.6.4
- old
+ new
@@ -191,9 +191,17 @@
def paragraph_elements(identifier={:index => 0})
@platform.paragraphs_for(identifier)
end
+ def label_element(identifier={:index => 0})
+ @platform.label_for(identifier)
+ end
+
+ def label_elements(identifier={:index => 0})
+ @platform.labels_for(identifier)
+ end
+
def file_field_element(identifier={:index => 0})
@platform.file_field_for(identifier)
end
end
end