Load field labels instead of creating new ones

This commit is contained in:
Bryan Helmkamp 2008-11-30 14:52:52 -05:00
parent de2ba2caf8
commit 28bd5f2533

View File

@ -128,7 +128,9 @@ module Webrat
end
def labels
@labels ||= label_elements.map { |element| Label.new(@session, element) }
@labels ||= label_elements.map do |element|
Label.load(@session, element)
end
end
def label_elements