Forum Discussion
Good morning,
I have the same problem. My tested application is displayed in object tree as a black window. As far as I can see the component is not obscured on screen by some other window or scrolled off the screen. Testcomplete is not able to click on this window.
The application is a TApplication. I don't know if this has to do with it, but maybe worth mentioning.
Have any of you encountered this problem?
Thanks in advance.
Hi,
> My tested application is displayed in object tree as a black window.
Can you post a screenshot that demonstrates the problem?
- Adam16 years agoOccasional Contributor
I have added a screenshot that illustrates the problem.
- tristaanogre6 years agoEsteemed Contributor
What you're experiencing is correct... when TestComplete is in the foreground and your application is behind it, TestComplete cannot get an "image" of your control so it shows up black. When you move your application to the foreground, sure it shows up, but now TestComplete does not have focus so the Object Browser doesn't refresh.
If you were using two monitors and had TestComplete in one monitor and your application in another, this will work.
Truthfully, the image in the Object Browser has no functional effect on your tests. It's simply there to allow you to be able to visually verify the componet.- Adam16 years agoOccasional Contributor
Thanks for your reply. However, my application is in the foreground, but testcomplete is still waiting till the window is activated and/or the window is overlapped, and is unable to click on the windowbutton. I tried this with two monitors, also tried to activate the window, but without success.
My code:
var p, w; p = Sys["Process"]("rsoft_scl_install", 4); w = p["Window"]("TWizardForm", "Setup - Synopsys Photonic Solutions Licensing Version 2018.12", 1);
w["Click"](320, 370); //click somewhere on the window, works
nextButton = w["Window"]("TNewButton", "&Next >", 1);
nextButton["Click"](); //does not work
Related Content
Recent Discussions
- 2 days agovladd1