we want to properly simulate a user clicking on our browser app.
Testcomplete allows us to specify an onscreen object. However we want to simulate a click at a specific point within the space ocupied by the browser window, without actually knowing what the object is. IE click on the top (z-order) object at that location.
We have tried specifying a frame & clicking within the frame. TestComplete logs the following error: "There was an attempt to perform an action at point (369, 260), which is overlapped by another window.".
We want the click event to actually be passed to the overlapping window. IE just as if a real user clicked at that point within the frame.
1. OnscreenObject.HoverMouse to move the mouse to the position where you want to click.
2. Get the coordinates of the mouse relative to the desktop using: Sys.Desktop.MouseX and MouseY
3. Simulate a click relative to the desktop by using: Sys.Desktop.MouseDown then MouseUp (coords from step 2 are used here)
That's really strange. In this case, I recommend that you use the approach suggested by Matt. If you decide to investigate the behavior you observe when the IE window is clicked, let us know the full name (not the mapped name) of the window for which the Click method is called and that of the overlapping window.