Forum Discussion
AlexanderM
14 years agoStaff
Hello Sutherson,
The "Ignore Unexpected Window" and "Ignore Overlapping window" options are related to the situation when TestComplete is trying to perform an action over a window. These options define whether TestComplete should check for such windows.
In your case, you don't have such a situation, so TestComplete will not check for an unexpected window. You need to add an appropriate verification to your script explicitly. For example, you can do it in the following way:
Reproduce the scenario when an unexpected window appears. When the window appears, pick it up using the Finder tool and save the FullName property of the corresponding object somewhere. Now, after the code that can lead to appearing of an unexpected window, add some code that will check whether the process of the unexpected window and the window itself exist. Use the Sys.WaitProcess and Process.WaitWindow methods to do that. You can find some samples on how to use these methods in the Waiting for a Process or Window Activation help topic. If the window exists, call the Close method to close it.
Does this help?
Related Content
- 10 years ago
- 12 years ago
Recent Discussions
- 13 hours ago