Forum Discussion
caganYou may look at this.
I came to similar problem when I didn't know if window will appear but still I must search for it.
My solution was to use FindEx method to search the object because it will return Exists property equals false if it will not found it.
No error will be raised and you can set the timeout so method will be quite fast.
https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/findex-method.html?sbsearch=findex
var object = findEx()
if (object.exists == false) Log.Message('Windows is not here, so no futher operqations needed');
else {
Log.Message('Found the window,');
CloseAdditionalPopup();
}
- cagan4 years agoOccasional Contributor
Hi,
Thank you for the offer.
I tried FindEx() medhot like that. But still it takes error like the object does not exists. Just in case Save As popup object is found FindEx method does it works otherwise it takes object does not exists error.
There should be a way to manage cases if different UI screen appears.
Related Content
- 5 years ago
- 6 years ago
Recent Discussions
- 17 hours ago