Solved
Forum Discussion
jmcwhinney
11 years agoContributor
Thanks Ryan,
As you can see from my code, my objects have a very long list of parents, and it would not be realistic to write code to traverse the entire tree, waiting for each parent to exist before looking at its children.
Surely there must be some builtin function to do this for me?
Thanks again for the quick response,
Cheers,
- James
Ryan_Moran
11 years agoValued Contributor
"my objects have a very long list of parents"
Indeed. That is why I gave you the link to: Waiting For Web Pages
At the very least you may want to check that the page exists, and that the toolbar on which the button resides exists.
If you want a very simple solution then add a delay.
If you want a more dynamic approach I would suggest searching for the object within a loop with either .Find or .FindChild methods.