Module: Vapir::Hidden
- Extended by:
- ElementHelper
- Defined in:
- lib/vapir-common/elements/elements.rb
Instance Method Summary collapse
-
#append(append_value) ⇒ Object
Appends the value to the value of this hidden field.
-
#clear ⇒ Object
Clears the value of this hidden field.
-
#set(value) ⇒ Object
Sets the value of this hidden field.
-
#visible? ⇒ Boolean
Hidden element is never visible - returns false.
Methods included from ElementHelper
add_specifier, container_collection_method, container_single_method, included
Methods included from ElementClassAndModuleMethods
#add_container_method_extra_args, #all_dom_attr_aliases, #all_dom_attrs, #class_array_append, #class_array_get, #class_hash_get, #class_hash_merge, #container_collection_methods, #container_method_extra_args, #container_single_methods, #default_how, #dom_attr, #dom_attr_locate_alias, #dom_function, #dom_setter, #element_collection, #factory, #inspect_these, #inspect_this_if, #parent_element_module, #set_or_get_class_var, #specifiers
Instance Method Details
#append(append_value) ⇒ Object
Appends the value to the value of this hidden field.
262 263 264 |
# File 'lib/vapir-common/elements/elements.rb', line 262 def append(append_value) self.value = self.value + append_value end |
#clear ⇒ Object
Clears the value of this hidden field.
267 268 269 |
# File 'lib/vapir-common/elements/elements.rb', line 267 def clear self.value = "" end |
#set(value) ⇒ Object
Sets the value of this hidden field. Overriden from TextField, as there is no way to set focus and type to a hidden field
257 258 259 |
# File 'lib/vapir-common/elements/elements.rb', line 257 def set(value) self.value=value end |
#visible? ⇒ Boolean
Hidden element is never visible - returns false.
272 273 274 275 |
# File 'lib/vapir-common/elements/elements.rb', line 272 def visible? assert_exists false end |