vendor/gems/gems/firewatir-1.2.1/MozillaBaseElement.rb
#
# Description:
#   Returns the text of the element.
#
# Output:
#   Text of the element.
#

Returns the text of the element.

Text of the element.
Returns the text of the element . Text of the element .
def text()
            assert_exists
            if(element_type == "HTMLFrameElement")
                jssh_socket.send("#{BODY_VAR}.textContent;\n", 0)
            else
                jssh_socket.send("#{element_object}.textContent;\n", 0)
            end
            return_value = read_socket().strip()
            @@current_level = 0
            return return_value
        end
def text ( ) assert_exists if ( element_type == "HTMLFrameElement" ) jssh_socket . send ( "#{BODY_VAR}.textContent;\n" , 0 ) else jssh_socket . send ( "#{element_object}.textContent;\n" , 0 ) end return_value = read_socket ( ) . strip ( ) @@current_level = 0 return return_value end
Description:
Returns the text of the element.
Description : Returns the text of the element .
#puts "element_type is #{element_type}"
 #puts "text content of element is : #{return_value}"
 #if(returnType == "boolean")
 #    return_value = false if returnValue == "false"
 #    return_value = true if returnValue == "true"
 #end
