How to test UI interaction of Silverlight dialogs?

Posted by Bernard Vander Beken on Stack Overflow See other posts from Stack Overflow or by Bernard Vander Beken
Published on 2009-12-03T15:53:21Z Indexed on 2010/06/11 2:12 UTC
Read the original article Hit count: 447

I am using Silverlight 3.0 Unit Testing, version Silverlight Toolkit November 2009.

Apart from unit tests, it allows to do UI interaction tests, typically using AutomationPeer subclasses (eg ButtonAutomationPeer to interact with a Button).

Are there AutomationPeer classes to test the interaction with the following:

  • OpenFileDialog
  • SaveFileDialog
  • MessageBox

In unit tests it would be possible to stub these, but for integration and browser testing it would be great to have this testable.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about dialog