lib/page-object/accessors.rb in page-object-0.8.8 vs lib/page-object/accessors.rb in page-object-0.8.9

- old
+ new

@@ -1197,10 +1197,10 @@ :file_fields].each do |method_name| define_method(method_name) do |name, *identifier, &block| define_method("#{name}_elements") do return call_block(&block) unless block.nil? platform_method = (method_name == :checkboxes) ? 'checkboxs_for' : "#{method_name.to_s}_for" - platform.send platform_method, identifier.first.clone + platform.send platform_method, (identifier.first ? identifier.first.clone : {}) end end end end