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
1 changed files with 3 additions and 1 deletions

View File

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