Load field labels instead of creating new ones
This commit is contained in:
parent
de2ba2caf8
commit
28bd5f2533
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user