GetWrappedText Function

Class

HtmlHeading, HtmlLink, and HtmlText.

Action

Returns all text as a list of strings, with the text word-wrapped at 64 characters per string.

Availability

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

Syntax

lsText = object.GetWrappedText()
Variable Description
lsText The text. LIST OF STRING.

Notes

Unlike with the GetMultiText function, the list of strings returned by GetWrappedText does not reflect line endings as displayed in the application. Instead, GetWrappedText word-wraps all text at 64 characters per string.

GetWrappedText returns up to 1023 characters.

Example

The following example uses the description of sunglasses on the Products page of the GMO Web application.

LIST OF STRING lsText
lsText = ProductsPage.SunGlassesDesc.GetWrappedText()
ListPrint (lsText)

// Result:

// Use these full-coverage, full-protection sun glasses for all
// your outdoor activities. Polycarbonate lenses provide
// lightweight, shatterproof protection. Lenses offer 100% UV
// protection; gray tint for true color transmission. Coating on
// inside of lens decreases light reflections from behind.
// Wire-injected nylon frames are unbreakable and offer a snug,
// sure fit.