TestComplete Web Testing Quick Tip: Checking Image Size Specifications
Test and Monitor | Posted March 24, 2006

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).


By submitting this form, you agree to our
Terms of Use and Privacy Policy

Thanks for Subscribing

Keep an eye on your inbox for more great content.

Continue Reading

Add a little SmartBear to your life

Stay on top of your Software game with the latest developer tips, best practices and news, delivered straight to your inbox