Skip to main content



GetAttribute Function

Returns the attribute value for an element as specified by the engine attribute for it.

Syntax 1

GetAttribute(attributeName)

Returns the attribute value for an element as specified by the engine attribute for it.

Arguments

attributeName String - The name of the supported engine attribute. Supported attributes are: entityid, elementid, name, entityname, index, xpath.

Syntax 2

GetAttribute(attributeName, element)

Returns the attribute value for an element as specified by the engine attribute for it.

Arguments

attributeName String - The name of the supported engine attribute. Supported attributes are: entityid, elementid, name, entityname, index, xpath.

element Any - element for which the specified attribute value is to be determined.

Remarks

Example:

GetAttribute("entityid"); 
// returns the values for the entity in whose context the function is called. Only the attributes listed above are supported

Example:

GetAttribute("entityid"); // returns value