TestComplete Web Testing Quick Tip: Checking Image Size Specifications
TestComplete can do more than just perform functional testing of web pages; it also provides scripting access to elements and element attributes of web pages shown in Internet Explorer. This lets you easily check the attribute values and determine whether the page matches the quality standards adopted in your organization.
The following code snippet shows how you can check the width and height attributes of images with TestComplete. These attributes specify the image size and if they are not specified or if they are incorrect, an image may be invisible or it may display incorrectly (for more information on why this check is important, see also http://www.xs4all.nl/~sbpoley/webmatters/checklist.html#imagesize).