lib/browser_auto/browser/element.rb in isomorfeus-preact-23.9.0.rc2 vs lib/browser_auto/browser/element.rb in isomorfeus-preact-23.9.0.rc3

- old
+ new

@@ -107,18 +107,10 @@ # Get the currently selected file for this input. This is only useful for # file inputs without the `multiple` property set. # # @return [Browser::File] the file selected by the user def file - files.first - end - - # Get the currently selected files for this input. This is only useful for - # file inputs with the `multiple` property set. - # - # @return [Browser::FileList] the currently selected files for this input - def files - FileList.new(`#@native.files`) + `#@native.files.item(0)` end # Determine whether this is the same element # # @return [boolean] true if the element is the same, false otherwise