lib/firewatir/elements/hidden.rb in firewatir-1.6.5 vs lib/firewatir/elements/hidden.rb in firewatir-1.6.6.rc1
- old
+ new
@@ -1,56 +1,56 @@
-module FireWatir
- #
- # Description:
- # Class for Hidden Field element.
- #
- class Hidden < TextField
- INPUT_TYPES = ["hidden"]
-
- #
- # 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.
- #
- def set(n)
- self.value=n
- end
-
- #
- # 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.
- #
- 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
- #
- 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.
- #
- def focus
- end
-
- #
- # Description:
- # Hidden element is never visible - returns false.
- #
- def visible?
- assert_exists
- false
- end
-
- end # Hidden
-end # FireWatir
+module FireWatir
+ #
+ # Description:
+ # Class for Hidden Field element.
+ #
+ class Hidden < TextField
+ INPUT_TYPES = ["hidden"]
+
+ #
+ # 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.
+ #
+ def set(n)
+ self.value=n
+ end
+
+ #
+ # 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.
+ #
+ 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
+ #
+ 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.
+ #
+ def focus
+ end
+
+ #
+ # Description:
+ # Hidden element is never visible - returns false.
+ #
+ def visible?
+ assert_exists
+ false
+ end
+
+ end # Hidden
+end # FireWatir