lib/watir-classic/locator.rb in watir-classic-3.4.0 vs lib/watir-classic/locator.rb in watir-classic-3.5.0
- old
+ new
@@ -13,10 +13,10 @@
end
def each
if has_excluding_specifiers?
locate_elements_by_xpath_css_ole.each do |element|
- yield element
+ yield create_element element
end
else
@tags.each do |tag|
each_element(tag) do |element|
next unless type_matches?(element.ole_object) && match_with_specifiers?(element)