suzanne_raine
11 years agoContributor
Object does not exist.
Hi,
I'm trying to run a test where I click a button on my plugin which is a WPF application.
Unfortunately, it's not recognising my plugin window as an object, so therefore when it gets to my button it just won't click it.
I searched the forums and found people with similar problems.
The main solution seems to be adding the VisibleOnScreen property to the object, which I've done. And also adding the RefreshMappingInfo() method line in to my code.
Unfortunately, it's still not working.
Any help? It'd be much appreciated! :)
I'm trying to run a test where I click a button on my plugin which is a WPF application.
Unfortunately, it's not recognising my plugin window as an object, so therefore when it gets to my button it just won't click it.
I searched the forums and found people with similar problems.
The main solution seems to be adding the VisibleOnScreen property to the object, which I've done. And also adding the RefreshMappingInfo() method line in to my code.
Unfortunately, it's still not working.
Any help? It'd be much appreciated! :)
- I had a similar (or at least, similar-sounding) issue this week.. Next time it doesn't work, try looking in the Object browser and see what TC is recognizing the name as. In my case, TC was viewing the name incorrectly at random times (but especially when the program under test was closed and re-opened while TC was running), and therefore wasn't able to recognize the objects. And then, it would sometimes randomly recognize the object correctly again.
The solution in my case was to increase the Method invoke timeout property in the Project Settings. Maybe that will help here, too?
Edit: If Object Browser appears to recognize it correctly, it could still be the problem I linked to. I've seen TC re-name stuff in the Object Browser over the course of just a few seconds - it just takes time for it to realize that it's looking at an open application and get the proper names, I guess.