TestComplete failing to detect the overlapping window that is on the screen
I need to interact with an Overlapping Window in a Silverlight application. Which I believe means that the window is considered a borderless window. Test Complete is also able to detect the buttons on the window that I need to interact with, as Exists or as Visible. The problem is that when I try to click on the button, I get a popup saying that Test Complete is waiting on the overlapping Window to become visible. From what I can tell, it is, and I have already found the UIAObject that is actively on the screen that I need to interact with, but TestComplete will tell me that it is waiting for the overlapping screen to become visible. While diving through Object Browser, I found that this particular window only exists within the Tree while it is on the screen. So if I found that the object does exists, and that the button on that screen itself exists, I am not certain which window TestComplete believes it's waiting for. The worst part of all of this is, that it fails probably about 60% of the times I run it. For sometime I thought it was a timing issue, so I put a 2 second delay in, but that didn't really change the success/failure rate. I went diving through community posts, but I haven't been able to locate anything similar to what I am seeing. I am paste the code below. I get the 'Waiting on the overlapping window to become visible' message for TestComplete at the btnLogYes.Click() line. After it has already detected that the logWindow exists, otherwise it skips over the button press, because if the logWindow doesn't exist, the Yes Button doesn't exist either. I am also attaching the screen shot of my Overlapping Windows parameters in Playback. I suspect that this is going to be some form of weird Memory issue with SilverLight... Any help would be greatly appreciated! Log.Message("Pressing the Log Button"); global.commsLog.click(); Delay(2000); Log.Message("Looking if the Log Window 'Yes' button is on the screen"); var parent = NameMapping.Sys.sllauncher.wndMyAvail.ShellEmbedding.ShellDocObjectView.browser.Silverlight_Control.Initializing_Application var logWindow = parent.FindChild("ObjectIdentifier", "RadBusyIndicator"); var btnLogYes = logWindow.FindChild("ObjectIdentifier", "Yes", 0, true); // Finish Logging the message Log.Message("Pressing the Yes Button to finish logging the messages"); if (logWindow.Exists) { Log.Message("The Yes Log Button was visible, Click it!"); btnLogYes.Click(); } else { Log.Message("The Yes Log Button was not visible"); }Solved2.6KViews0likes5CommentsPreparing Silverlight XAP file
Hello, Does anyone know if a Silverlight XAP file prepared with the tcAgPatcher utility from TestComplete 9is compatible with TestComplete 10? Our QA Team uses TestComplete 9, but I am trying to evaluate the use of TestComplete (trial is v10)for a non-QA effort. Thanks, Chris824Views0likes1Comment