cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with overlapping window

SOLVED
New Contributor

Problems with overlapping window

Hello,

 

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.

 

Regards,

Mario

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Leader

Re: Problems with overlapping window

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.

 

Cheers

-Lino

2 REPLIES 2
Community Hero

Re: Problems with overlapping window

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
[Community Expert Group]
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
Extensions available
Community Leader

Re: Problems with overlapping window

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.

 

Cheers

-Lino

New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors