class FireWatir::FileField

Description:

Class for FileField element.

Constants

INPUT_TYPES

Public Instance Methods

set(path) click to toggle source

Description:

Sets the path of the file in the textbox.

Input:

path - Path of the file.
# File lib/firewatir/elements/file_field.rb, line 16
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