Preparing a Web Browser for Testing Silverlight Applications

Applies to TestComplete 14.90, last modified on June 15, 2021

The information in this topic applies to web tests that locate web objects by using internal identification properties provided by TestComplete and run in local environments.

In order for TestComplete to work properly with a Silverlight application embedded into a web page, you may need to prepare your web browser in a special way. Pay attention to the following requirements before recording or running your tests:

  • Clear the browser cache. To make sure the tested application is retrieved from the original location rather than from the cache, you should clear the browser’s cache before testing your application. If the .xap file, in which the tested Silverlight application is implemented, is cached by the web browser and the wrapper page loads a copy of the file from the browser cache, TestComplete cannot automatically make the application testable.
  • Set the zoom ratio to 100%. If the zoom ratio of the web page with the tested Silverlight application differs from 100%, the test engine may fail to determine the coordinates of the tested web controls correctly, some objects may not be recognized and your test may work improperly. Make sure the zoom ratio of the tested page in your web browser is set to 100% before recording or running tests. For information on how you can change the zoom ratio of a web page in your web browser, see the topics of the Preparing Web Browsers section.

Besides preparing a web browser, you may need to configure your in-browser Silverlight application before testing. For detailed instructions on how to prepare your Silverlight application for testing with TestComplete, see the Preparing In-Browser Silverlight Applications for Testing topic.

See Also

Testing Silverlight Applications
Testing In-Browser Silverlight Applications - Requirements
Preparing In-Browser Silverlight Applications for Testing
Preparing Web Browsers

Highlight search results