waitWinFormsObject not recognising objects or ignoring timeout
Test Complete 8 seems to be having problems recognising objects intermittently
We use Test Complete to to test a very complex .net application. We can run the same code many times and sometimes it works and other times it stops waiting for objects even though we know they are there.
We have been noticing more an more that it is having trouble identifying objects that are actually there. Even hitting pause we can then go to object in the object browser. But continuing the code it still sits there waiting for that object.
The other issue is that when it gets into this 'Blind mode' where it cant seem to see things, it does not seem to be using the timeout value.
For example, the code below to set to wait 5 seconds for the reminder form. It works most times but occassional the reminder is displayed, but the little playback control shows a message like "waiting for waitWinFormsObject("frmReminder") and sites there for a very very long time, its like it is ignoring the 5 second timeout we set in the code.
If we hit pause button and wait a very very long time, we can go it object broweser copy path for the form and it is exactly as in in the code but it still does not find it and we dont know why it waits more than the time we have told it
dim w1
set w1 =Sys.Process("CareLinkPlus").frmCarelinkPlusMDI.WinFormsObject("MdiClient", "").waitWinFormsObject("frmReminder",5000)
if w1.exists then
call w1.WinFormsObject("Button", "OK").click
end if