Sha256: 1216457f865664ab988d7f3262627d8ab5160efa115a05ff9d60af1d48848f20
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mk_firewatir-1.6.5 | lib/firewatir/elements/file_field.rb |
firewatir-1.6.5 | lib/firewatir/elements/file_field.rb |