Forum Discussion
NisHera
Valued Contributor
Well,
Your are trying 3 things in one line...
1) finding the object
Aliases.MyApp.MainFormBase.UltraToolbarsDockArea
2) checking availability of below item ..in collection
Tab|Group|Nonexistent Button
3) is that Item clickable...?
your code should work if it fails in 3rd point....and may be some times if there MyApp not available.
So you have check exists of the object like thi s
and if exist then get items collection more on lists
loop through it to check your item exist
then click.
baxatob
8 years agoCommunity Hero
Also note, that try-except statement catches only python exceptions (runtime, attribute etc). ItemNotFound is not exception for python, it's a kind of error, which controlled by TestComplete engine.
Related Content
Recent Discussions
- 4 hours agoSvetaG