Open Agent DomTable reusable methods for Silk Test Classic
In SilkTest Classic, the SilkTest Classic Agent has reusable functions for an HtmlTable object. Using the Open Agent, the HtmlTable object is now recognized as a DomTable object, however, various methods that were available for the Classic Agent are not available for the Open Agent. How can a user perform steps that use the GetRowRangeText or GetFormattedText methods on a DomTable object using the Open Agent?
This archive contains the following files:
* sample application
This archive provides additional functions for working with Open Agent DomTable objects in SilkTest similar to those available to the Classic Agent.
1. Extract the xDomTable folder in the archive to the SilkTest installation directory
The following functions are available in xDomTable.inc
GetRowRangeText(TABLEROW StartRow optional, TABLEROW EndRow optional)
GetIndex(STRING sText, TABLECOL Col optional, INTEGER iOccurrence optional)
Usage: As used in DomTable_OA.stp
Once the xDomTable folder has been extracted to the SilkTest installation directory,
user can specify the xDomTable.inc file in the SilkTest Runtime Options or within the Testscript file.
Specifying xDomTable.inc in the SilkTest Runtime Options for usage across SilkTest project:
1. From SilkTest, goto Options | Runtime
2. In the 'Use files' section, add 'xDomTable\xDomTable.inc'
Specifying xDomTable.inc in SilkTest Frame/Testscript file for usage in a single SilkTest project:
1. Add the following line at the beginning of the Frame/Testscript file
Note: change the classname of your recorded DomTable object to xDomTable to expose the above methods.