Sha256: da3c5724cb6ac843572e912c67f78a20cc096cf7f8dae69d3d52ecb2297f1894
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
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
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mk_firewatir-1.6.5 | lib/firewatir/elements/hidden.rb |
firewatir-1.6.5 | lib/firewatir/elements/hidden.rb |