Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How can SilkTest check the state of a Bitmap which will change colour under certain conditions e.g. OnMouseOver?

How can SilkTest check the state of a Bitmap which will change colour under certain conditions e.g. OnMouseOver?

Unfortunately the "state" of an object of this nature e.g. a bitmap button cannot be returned as there is no state change taking place and what usually happens is it is just replaced by another bitmap.

The best way to verify that it has changed is by using the CRC of the image. The CRC is a checksum that is created to check if the data in a file has been corrupted. If the file changes in any way then the CRC is changed.

To verify if the image is changed use the GetBitmapCRC () method to record the CRC of the original image and compare it to the CRC of the new image.

Old KB# 22170

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:28
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.