This project is read-only.

White unable to Identify objects in a wpf Dialog

Oct 6, 2009 at 1:59 AM


I have an issue with White identifying controls in a wpf dialog.

When I start my application and run the test, the test runs for the first time without any issues.

Without closing the application, if I try to run the test again, the test fails and white throws an error saying 'object reference not set to an instance'. for controls which was identified before.

This issue is happening in that particular wpf dialog. Have anyone encountered this kind of problem before? Your help in this is highly appreciated.


Oct 19, 2009 at 7:27 AM

This one works fine. I had many windows open at the same time with the Same title. I have refined my GetCurrentWindow() method to check for WindowInteractionState and that has fixed the issue