lib/appium_lib/ios/common/helper.rb in appium_lib-10.4.0 vs lib/appium_lib/ios/common/helper.rb in appium_lib-10.4.1
- old
+ new
@@ -19,10 +19,10 @@
attr_accessor :filter
def start_element(type, attrs = [])
return if filter && !filter.eql?(type)
- page = attrs.each_with_object({}) do |hash, attr|
+ page = attrs.each_with_object({}) do |attr, hash|
hash[attr[0]] = attr[1] if %w(name label value hint visible).include?(attr[0])
hash
end
_print_attr(type, page['name'], page['label'], page['value'], page['hint'], page['visible'])
end