I tried this function that i've found in old topics :
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
Public Function IESync()
Dim IE As New InternetExplorer, MyIE As New InternetExplorer
Dim wShell As New ShellWindows
Dim sAccType As String, IEpg As String, Elaps_Time As Integer
Dim IE_Sync_Time: IE_Sync_Time = 30
IEpg = "qaforums"
For Each MyIE In wShell
If MyIE.LocationURL Like "*" & IEpg & "*" Then
Set IE = MyIE
Elaps_Time = 0
Elaps_Time = Elaps_Time + 1
Sleep 1, tpPauseSeconds
Loop Until IE.Busy = False And Elaps_Time < IE_Sync_Time
</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">The problem is that IE is still busy (I can see in the status that the page is still loading) but IE.busy = False
Is there another way to wait the end of loading? (some pages take a long long long time to load)
You need to add a reference to Microsoft HTML Object Library.
Then you need to start at the top of the document and get all the elements that are of the type FRAME or IFRAME and check their readystate, making sure the frame is complete. Then you need to keep drilling down in each frame to see if there are more frames in it, etc...
Someone I work with wrote code to do this. It's a bit complicated, and will probably take some time to figure out.
Current AUT running test scripts on TP 6.3 build 183, SQL 2000 DB.
Legacy AUT running on TP 5.6.0 Build 81 and TP 6.2 build 449 with SQL 2000 DB.
TP/IE Clients on VMWare ESX 4.1 server, AUT Servers on VMWare ESX 3.5 server.
Application Under Test (AUT):
Client/Server based, IE 7/8 interface with SQL 2005/2008 DB.