class FireWatir::Hidden

Description:

Class for Hidden Field element.

Constants

INPUT_TYPES

Public Instance Methods

append(n) click to toggle source

Description:

Appends the value to the value of the hidden field. Overriden in this class, as there is no way to set focus to a hidden field

Input:

n - Value to be appended.
# File lib/firewatir/elements/hidden.rb, line 27
def append(n)
  self.value = self.value.to_s + n.to_s
end
clear() click to toggle source

Description:

Clears the value of the hidden field. Overriden in this class, as there is no way to set focus to a hidden field
# File lib/firewatir/elements/hidden.rb, line 35
def clear
  self.value = ""
end
focus() click to toggle source

Description:

Does nothing, as you cant set focus to a hidden field. Overridden here so that exception doesn't occurs.
# File lib/firewatir/elements/hidden.rb, line 43
def focus
end
set(n) click to toggle source

Description:

Sets the value of the hidden field. Overriden in this class, as there is no way to set focus to a hidden field

Input:

n - Value to be set.
# File lib/firewatir/elements/hidden.rb, line 16
def set(n)
  self.value=n
end
visible?() click to toggle source

Description:

Hidden element is never visible - returns false.
# File lib/firewatir/elements/hidden.rb, line 50
def visible?
  assert_exists
  false
end