Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug PasswordBoxAutomationPeer issue with IValueprovider
0 replies. Latest Post by yuviusername on April 29, 2009.
(0)
yuviuser...
Member
4 points
6 Posts
04-29-2009 6:01 AM |
Guys,
I am getting this error when I am trying to automate unit test for a simple Login page in a Silverlight application. Not sure whether this is a bug or not. Please clarify me what I need to do for running the test cases properly.
Error: Operation is not valid due to the current state of the object. 'passvalueProvider.Value' threw an exception of type 'System.InvalidOperationException'
Error is happening at the line of "IValueProvider passvalueProvider = (IValueProvider)txtPassPeer;"
Code is here:
[
[Asynchronous]
{
uservalueProvider.SetValue(
buttonInvoker.Invoke();
TestComplete();
}