Query on: Waiting untill complete page is loaded.?
my application contains various web pages, in first page there is a button to navigate to next page.... in similar way all pages have...
when im naviagating to next page.... i want TP to wait untill the complete page is loaded (ie, with all objects..... first thing to check is whether the window is attaching then, checking all the objects are loaded properly) before doing anything there....
can any one please help me with a sample code....?
Re: Query on: Waiting untill complete page is loaded.?
this is a sample code I did.
***shares module code:***
Dim IE As New InternetExplorer, MyIE As New InternetExplorer
Dim wShell As New ShellWindows
Public Function fnIEStat(ByVal strUrl As String) As Boolean
For Each MyIE In wShell
While MyIE.LocationURL <> strUrl
If MyIE.LocationURL Like strUrl Then
Set IE = MyIE
While IE.Busy = True
If IE.Busy = False Then
fnIEStat = True
this returns u done once the page is loaded.
Include the reference Microsoft Internet COntrols.
Hope this works for u.