Created By  inflectra.adam Tuesday, April 7, 2015
When testing Silverlight applications, you may find that Rapise fails to recognize the objects in the Silverlight app using the UIAutomation library. When using the Rapise Spy Tool, the  whole app is identified as a single window. The objects such as a dropdown, buttons etc. inside the silverlight app are not individually recognized.

When testing a Silverlight application using Rapise, you need to ensure that your Silverlight application does not run in window-less-mode, i.e. set the 'Windowless' property of the Silverlight HTML object to false. Find more information about window-less mode on the following site: msdn.microsoft.com/en-us/library/cc838156(VS.95).aspx

For example if you have the following object in your HTML page:

<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%">
<param name="Windowless" value="true" />
...
</object>

You will need to change this to:

<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%">
<param name="Windowless" value="false" />
...
</object>

Then you will be to perform automated testing successfully.

Article Info
  • Last Updated: 4/7/2015
  • Article ID: KB141
  • Views: 1353