Forum Discussion

wangfei0079's avatar
15 years ago

How can I avoid crash when I record test case over WPF controls?

Anyone get the issue of crash on WPF controls workflow as recording test case by using TestComplete? From my code, I debug into the crash point. It seems a WPF "Clear" operation of Collection class. If I only run my application, it works fine. But if I start app and spoon the app by TestComplete. It will be crash at the colloection clear line. The exception message is "Cannot explicitly modify Children collection of Panel used as ItemsPanel for ItemsControl. ItemsControl generates child elements for Panel."



Any suggestions and comments are appricated!