IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
If the object under consideration is a custom or 3rd party control, then the standard method of getting properties using SilkTest can"t be used.
The workaround in this case is to capture a bitmap and extract text using SilkTest"s Optical Character Recognition (OCR) features. For more information on capturing bitmaps, refer to SilkTest"s help topic "Capturing a bitmap during recording". To use OCR, you must include the ocr.inc file in the testscript (or include file) and give a call to OcrGetTextFromBmp() as follows:
OcrGetTextFromBmp (sOcrText, sBitmapFile)
sOcrText = The result of converting bitmap to text.
sBitmapFile = The bitmap (.bmp) file to convert.