GetFullCaption Function

Class

HtmlHeading, HtmlLink, and HtmlText.

Action

Returns all the text of the object, up to a maximum of 1023 characters, as one string.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

sCaption = object.GetFullCaption( )
Variable Description
sCaption The text of the object. STRING.

Example

This example uses the Welcome to Green Mountain heading in the Welcome page of the GMO Web application, where [...] is the complete path for the Welcome page.

Browser.LoadPage("http://[...]")
STRING sCaption
sCaption = GMO.WelcomeText.GetFullCaption()
Print(sCaption)

// Result:
// Welcome to Green Mountain Outpost's OnLine Catalog! We are moving ...