....Preparing an object recognition hint....
Hello All,
I know its been covered a few times before but I can not find/understand the solution,
I am having performance issues using If Object on my WPF application, when the object I am looking for does not exists it spends ages doing "Preparing an object recognition hint".
I have a bunch of forms I have to click and validate. Some forms take special parameters selected from a pull down menu. But not all forms have the same selections. So I want to cycle through all the forms only changing the items that exist in that form.
For this I use If Object...
If an object exists,
then change it to a variable.
Else Do the next thing.
This works if the object exists but if the object does not exist it takes ages on "Preparing an object recognition hint" I guess trying to find it or something similar in the app's large hierarchy?
It eventually finishes, it indeed does not find the item and goes onto the next part of the test. There are no errors and its doing what I expect, except for the long time it takes it to establish that the object does not exist (~2 minutes). Changing the timeouts/self healing does not seem to have any affect.
The object I am checking is about 80 levels deep in the structure. Can I work round this some how, just look for the object I specify and not anywhere else? Surely the object is either there or its not there?