Web Add-in Extensibility Developer Guide > JavaScript Function Reference > General Test Object Functions > Get Property Value

Get Property Value      

Description

Returns the value of the specified property.

Syntax

function get_property_value(property)

Argument

Type

Description

property
String
The name of the property.

Return Value

The value of the specified property. If not found, returns nothing.

Remarks
Example

This example returns the text in the first cell of the table as the value of properties logical_name or title.

function get_property_value(property)

{

    if ( property == "logical_name" || property == "title" )

    // For the "title" identification property, as well as the "logical_name"

    // property, return the inner text of the first cell in the first row

    {    

        return GetTableElem().rows[0].cells[0].innerText;

    }

}