lib/firewatir/elements/file_field.rb in firewatir-1.6.5 vs lib/firewatir/elements/file_field.rb in firewatir-1.6.6.rc1

- old
+ new

@@ -1,29 +1,29 @@ -module FireWatir - # - # Description: - # Class for FileField element. - # - class FileField < InputElement - INPUT_TYPES = ["file"] - - # - # Description: - # Sets the path of the file in the textbox. - # - # Input: - # path - Path of the file. - # - def set(path) - assert_exists - - path.gsub!("\\", "\\\\\\") - - jssh_socket.send("#{element_object}.value = \"#{path}\";\n", 0) - read_socket() - @o.fireEvent("onChange") - - @@current_level = 0 - end - - end # FileField -end # FireWatir +module FireWatir + # + # Description: + # Class for FileField element. + # + class FileField < InputElement + INPUT_TYPES = ["file"] + + # + # Description: + # Sets the path of the file in the textbox. + # + # Input: + # path - Path of the file. + # + def set(path) + assert_exists + + path.gsub!("\\", "\\\\\\") + + jssh_socket.send("#{element_object}.value = \"#{path}\";\n", 0) + read_socket() + @o.fireEvent("onChange") + + @@current_level = 0 + end + + end # FileField +end # FireWatir