(Available with 0.18 release onwards)

Simple way for automate silverlight applications.
You would need to add reference to white.webbrowser.dll along with white.core.dll.
InternetExplorerWindow  browserWindow = InternetExplorer.Launch("http://localhost/white.testsilverlight/TestSilverlightApplicationTestPage.aspx", "FooApp Title - Windows Internet Explorer");
SilverlightDocument document = browserWindow.SilverlightDocument;
Button button = document.Get<Button>("buton");
Label label = document.Get<Label>("status");
//...so on. The objects Button, Label etc behave the same way as for WinForm/WPF etc.
Please look at the rest of the documentation to understand other aspects of white. This shows what you need to do extra to use Silverlight.
  1. Silverlight in firefox is not supported completely yet. UIItems can be read but mouse events don't work in the Firefox window.

Last edited Nov 4, 2009 at 4:45 PM by viveksingh, version 5

Comments

zkhalapyan Jan 27, 2011 at 9:54 PM 
Before you consider using White for automated Silverlight UI testing, check out this link http://timheuer.com/blog/archive/2010/11/24/coded-ui-available-for-silverlight-4.aspx.