Forum Discussion
Sounds like timing issues. Are you sure whatever you're using is allowing enough time for them to appear?
(Usually, the easiest way to verify this is to put an excessively long wait in before the action on the popup. If that makes it work every time, then you were try to access it too early and you need to put something in to detect it before you use it. I wouldn't use a wait permenantly. Hardcoded waits are never good ...)
Either that, or dodgy runtime identification properties.
- blbdt369 years agoContributor
Thanks for the response - yes, I have tried a delay. We have constant data being updated, so I actually have to use it in a couple places to give the data time to load.
I was just able to run the script, but I have no idea how. Then, all of the sudden, it stopped working again. And again, when I look at the items, it still shows that they are mapped to the names I am using in the scripts.
- blbdt369 years agoContributor
And just to make it more fun - when I can run the script, it only works as a stand alone function. I can't call it from my main program because I get the does not exist error. I don't know what the difference is there or if it is even related, but maybe it's helpful.
- dmiscannon9 years agoFrequent Contributor
Try adding the following command immediately after any delay. It will refresh the objects seen by TestComplete before continuing with the test. This command has the same affect as refreshing the display in the Object Browser.
Call sys.Refresh