lib/page-object/nested_elements.rb in page-object-0.7.1 vs lib/page-object/nested_elements.rb in page-object-0.7.2

- old
+ new

@@ -202,7 +202,31 @@ end def file_field_element(identifier={:index => 0}) @platform.file_field_for(identifier) end + + def area_element(identifier={:index => 0}) + @platform.area_for(identifier) + end + + def area_elements(identifier={:index => 0}) + @platform.areas_for(identifier) + end + + def canvas_element(identifier={:index => 0}) + @platform.canvas_for(identifier) + end + + def canvas_elements(identifier={:index => 0}) + @platform.canvases_for(identifier) + end + + def audio_element(identifier={:index => 0}) + @platform.audio_for(identifier) + end + + def audio_elements(identifier={:index => 0}) + @platform.audios_for(identifier) + end end end