Automate Silverlight application

Feb 1, 2012 at 4: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
{
  [TestFixture]
  [RequiresSTA]
  public class Class1
  {
    [Test]
    public void Test()
    {
      Browser browser = new IE();
      browser.DialogWatcher.Add(ldh);

      // Code
      browser.GoTo("https://mysite.net");
      browser.Link(Find.ByTitle("History Page") && Find.ByClass("NavBar-Subarea-Link")).Click();
    }
  }
}

I have following content structure

http://screencast.com/t/0UMAytn0lt

Aug 2, 2012 at 8:57 PM

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