14 years ago
Do Loop Does Not Seem to Exit
I am trying to get some timings on how long an IFrame takes to open on a web page. To do this I am using NativeWebObject.Find to see when certain text appears on the page, indicating that the text has loaded into the frame. Here is the code I'm using
Do
aqUtils.Delay 1000
Set obj = page2.NativeWebObject.Find("innerText", "How interested/engaged","TD")
Loop Until obj.Exists
Log.Message "Proofing Click Questionnaire Open - End"
But it never gets to the Log.Message line.
It looks like it is working because the Test Complete ballon shows the message Waiting 1000. .. repeating as it loops. And when the frame opens the ballon changes to saying Playback.. but for some reason it never continues the script. I have put breakpoints on the statement after the loop, but it never gets there and even tried a While loop with an If statement to exit, but the same thing happens. When I then try to stop the script it takes about a minute to stop with the TestComplete Ballon saying Stopping...
I am using IE8 and Test Complete 7.52.678.7
I started with a recorded VB Script and then modified it.
Thanks,
Larry
Do
aqUtils.Delay 1000
Set obj = page2.NativeWebObject.Find("innerText", "How interested/engaged","TD")
Loop Until obj.Exists
Log.Message "Proofing Click Questionnaire Open - End"
But it never gets to the Log.Message line.
It looks like it is working because the Test Complete ballon shows the message Waiting 1000. .. repeating as it loops. And when the frame opens the ballon changes to saying Playback.. but for some reason it never continues the script. I have put breakpoints on the statement after the loop, but it never gets there and even tried a While loop with an If statement to exit, but the same thing happens. When I then try to stop the script it takes about a minute to stop with the TestComplete Ballon saying Stopping...
I am using IE8 and Test Complete 7.52.678.7
I started with a recorded VB Script and then modified it.
Thanks,
Larry