Description:
Class for Hidden Field element.
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
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
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
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
Description:
Hidden element is never visible - returns false.
# File lib/firewatir/elements/hidden.rb, line 50 def visible? assert_exists false end