Ask a Question

Problems with overlapping window

New Contributor

Problems with overlapping window



Environment: Windows 10, Java 7, TestComplete 14


I am testing a Java application where it is possible for a window to open several times in the same place. They then overlap.

If I want to perform an OnScreen action, it can happen that the action is executed on the hidden window.
This leads to errors when executing the script.


How do I make it possible that I get a window into the status "VisibleOnScreen" == True before?


Window.Activate() does not work with views within a Java window.


As a normal user you would first move the top window to get to the one below.





Esteemed Contributor

If that's what a "normal user" would do.... then that's what you code to do.  You will need to use a "drag" method, minimize, or something like that to move and remove windows.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Implement the "OnOverlappingWindow" Event and move the window in the way to the right or left by 50 pixel repeatedly until the Objects on your desired window is visible on the screen.




Showing results for 
Search instead for 
Did you mean: