Straight text in a Web application can be in the following classes:
Silk Test Classic provides methods for getting the text and all its properties, such as color, font, size, and style.
There are also classes for text in Java applets and applications.
STRING sText sText = Acme.Copyright.GetText () Print (sText) Result: Copyright © 2006 Acme Software, Inc. All rights reserved.
When you are using the Open Agent, use the GetText() method to get text out of every DomElement control.
Window link = FindBrowserApplication("/BrowserApplication") .FindBrowserWindow("//BrowserWindow") .FindDomLink("A[@id='story2128000']") String linkText = link.GetText() print(linkText)