Module: Vapir::Hidden

Extended by:
ElementHelper
Defined in:
lib/vapir-common/elements/elements.rb

Instance Method Summary collapse

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.



208
209
210
# File 'lib/vapir-common/elements/elements.rb', line 208

def append(append_value)
  self.value = self.value + append_value
end

#clearObject

Clears the value of this hidden field.



213
214
215
# File 'lib/vapir-common/elements/elements.rb', line 213

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



203
204
205
# File 'lib/vapir-common/elements/elements.rb', line 203

def set(value)
  self.value=value
end

#visible?Boolean

Hidden element is never visible - returns false.

Returns:

  • (Boolean)


218
219
220
221
# File 'lib/vapir-common/elements/elements.rb', line 218

def visible?
  assert_exists
  false
end