Class: Vapir::Firefox::FileField

Inherits:
InputElement show all
Includes:
Vapir::FileField
Defined in:
lib/vapir-firefox/elements/file_field.rb

Overview

Description:

Class for FileField element.

Instance Method Summary collapse

Instance Method Details

#set(path) ⇒ Object

Description:

Sets the path of the file in the textbox.

Input:

path - Path of the file.


19
20
21
22
23
24
# File 'lib/vapir-firefox/elements/file_field.rb', line 19

def set(path)
  assert_exists do
    element_object.value=path
    fire_event("onChange")
  end
end