Forum Discussion

sjames913's avatar
sjames913
New Contributor
13 years ago

Detect and close unexpected window within the tested application

Hi,

 I'm currently trying to figure out how to close a window (within a tested application) that is sitting on top of another window. I cannot continue to test and access the objects on teh window, which I want to test, without closing the "unexpecte" window. 

 The issue that I'm having is that I cannot figure out whether or not there is a window sitting on top my the window, which I want to test. Both windows are enabled, available, and the focus is set to false. In addition, I've found that even when I close the offending window, the focus (for the window that I want to test) is still set to false (not sure why). 



Any help would be appreciated,

Newbie

3 Replies

  • sjames913's avatar
    sjames913
    New Contributor
    Thank you  Christophe Bleunven.

    The issue that I'm dealing with is when the "unexpected window" is a window, with the aapplication (which I'm testing). And Test Complete does not categorize the window as "unexpected". In other words, is there a way, in which I can tell, when a window is being overlapped by another?



  • Hi TC9 Newbie,

    I'm not sure to clearly understand your problem. Could you post the log message you get when TC fails to access to the first window ?

    Do you use a "replay" of a recorded test or an "hand-made" test ?



    Christophe