UFT Pro (LeanFT) .NET SDK Reference, Version 14.03
GetAttribute Method
Example 
The attribute name for the value to retrieve.
Returns the value of a single attribute.
Syntax
string GetAttribute( 
   string attributeName
)

Parameters

attributeName
The attribute name for the value to retrieve.

Return Value

The value of the specified attribute (null if the attribute does not exist).
Example
IImage tipImg = browser.Describe<IImage>(new ImageDescription
{
    Alt = As.RegExp(@"Tip.*"),
    Type = HP.LFT.SDK.Web.ImageType.Normal,
    TagName = @"IMG"
});
string alt = tipImg.GetAttribute("alt");