Automate Silverlight application

Feb 1, 2012 at 3:44 PM

I try to automate testing of Silverlight element in my web application.

Please suggest how I could do it.

I use Visual Studio+WatiN+White.

I approach to my page with Silverlight app by following code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using WatiN.Core;
using WatiN.Core.DialogHandlers;
using WatiN.Core.Native.Windows;
using White;

namespace GettingStarted
  public class Class1
    public void Test()
      Browser browser = new IE();

      // Code
      browser.Link(Find.ByTitle("History Page") && Find.ByClass("NavBar-Subarea-Link")).Click();

I have following content structure

Aug 2, 2012 at 7:57 PM

Has anyone ever got this approach working before i try to create a wheel that may have already been created.  Thanks