Forum Discussion
Thanks update,
Last time I check off 3rd selection, the window appear.
So I will uncheck it for project.
From help doc, I find it:
Run your tests. Whenever TestComplete cannot find a mapped object that a test operation uses, it will pause the test run and suggest fixing the identification problem
Regards,
Bingo
Can this window be dynamically searched in a script based on any values?
I mean, your script comes to the moment of interaction with this window.
The script is currently stopping because you cannot find the right window.
If you use the .findxxx() method and you search for this object, will it help you?
I mean that in the .find method (with a slight modification) you can search for several objects at once.
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
- Bingo5 years agoContributor
Back to my origin question,
There are two windows, and they are the same wndclass : #32770 and I use this property for dlg's namemaping,
My case like it:
Dlg.btnOK.Click ' another window will appear
Dlg.btnCancel.Click 'Cancel this window. But it will failed because it will show "btnCancel" is invisible. It still use last window structure.
But if I use these script,
Dlg.btnOK.Click
Dlg.refresh
Dlg.btnCancel.Click
It will work normally.
But most when a dlg disappear and another dlg appear, i don't need refresh the window in script.
So my question is,
When and where i need use reresh? When and where TC will auto refresh the tested object?
There have a simple explain:
I will add refresh method in my project now.
- Wamboo5 years agoCommunity Hero
Then I don't know the answer to your questions.
Maybe someone else know the answer.
But I personally wouldn't base my scripts on automatic object refreshing by TestComplete engine. :robotwink:
- Bingo5 years agoContributor
Thanks! I will think out how to work in TC cases.
Related Content
Recent Discussions
- 4 hours agoSvetaG