vendor/gems/gems/firewatir-1.2.1/MozillaBaseElement.rb
#
# Description:
#   Returns the type of element. For e.g.: HTMLAnchorElement. used internally by Firewatir
#
# Output:
#   Type of the element.
#

Returns the type of element.

Type of the element.
Returns the type of element . Type of the element .
def element_type
            jssh_socket.send("#{element_object};\n", 0)
            temp = read_socket()
            if temp == ""
                return nil
            end
            temp =~ /\[object\s(.*)\]/
            if $1
                return $1
            else
                return "HTMLAnchorElement"
            end
        end
def element_type jssh_socket . send ( "#{element_object};\n" , 0 ) temp = read_socket ( ) if temp == "" return nil end temp =~ / \[ object \s (.*) \] / if $1 return $1 else return "HTMLAnchorElement" end end
Description:
Returns the type of element.
Description : Returns the type of element .
#puts "in element_type object is : #{element_object}"
 # Get the type of the element.
 #puts "#{element_object} and type is #{temp}"
 # This is done because in JSSh if you write element name of anchor type
 # then it displays the link to which it navigates instead of displaying
 # object type. So above regex match will return nil
