vendor/gems/gems/firewatir-1.2.1/MozillaBaseElement.rb
#
# Description:
#   Returns an array of the properties of an element, in a format to be used by the to_s method.
#   additional attributes are returned based on the supplied atributes hash.
#   name, type, id, value and disabled attributes are common to all the elements.
#   This method is used internally by to_s method.
#
# Output:
#   Array with values of the following properties:
#   name, type, id, value disabled and the supplied attribues list.
#

Returns an array of the properties of an element, in a format to be used by the to_s method.
additional attributes are returned based on the supplied atributes hash.
name, type, id, value and disabled attributes are common to all the elements.
This method is used internally by to_s method.

Array with values of the following properties:
name, type, id, value disabled and the supplied attribues list.
Returns an array of the properties of an element in a format to be used by the to_s method . additional attributes are returned based on the supplied atributes hash . name type id value and disabled attributes are common to all the elements . This method is used internally by to_s method . Array with values of the following properties : name type id value disabled and the supplied attribues list .
def string_creator(attributes = nil)
            n = []
            n << "name:".ljust(TO_S_SIZE) + get_attribute_value("name")
            n << "type:".ljust(TO_S_SIZE) + get_attribute_value("type")
            n << "id:".ljust(TO_S_SIZE) + get_attribute_value("id")
            n << "value:".ljust(TO_S_SIZE) + get_attribute_value("value")
            n << "disabled:".ljust(TO_S_SIZE) + get_attribute_value("disabled")
            if(attributes != nil)
                attributes.each do |key,value|
                n << "#{key}:".ljust(TO_S_SIZE) + get_attribute_value(value)
                end
            end
            return n
        end
def string_creator ( attributes = nil ) n = [ ] n << "name:" . ljust ( TO_S_SIZE ) + get_attribute_value ( "name" ) n << "type:" . ljust ( TO_S_SIZE ) + get_attribute_value ( "type" ) n << "id:" . ljust ( TO_S_SIZE ) + get_attribute_value ( "id" ) n << "value:" . ljust ( TO_S_SIZE ) + get_attribute_value ( "value" ) n << "disabled:" . ljust ( TO_S_SIZE ) + get_attribute_value ( "disabled" ) if ( attributes != nil ) attributes . each do | key , value | n << "#{key}:" . ljust ( TO_S_SIZE ) + get_attribute_value ( value ) end end return n end
Description:
Returns an array of the properties of an element, in a format to be used by the to_s method.
Description : Returns an array of the properties of an element in a format to be used by the to_s method .
#n << "style:".ljust(TO_S_SIZE) + get_attribute_value("style")
 #n << "class:".ljust(TO_S_SIZE) + get_attribute_value("className")

attributes
<not_specific>