07-15-2008, 08:14 PM
Or you can use the below procedure...
' First set the browser / window object to a variable.
' The problem with this procedure is that if for some reason the browser remains the same, then it will become an infinite loop.... also, you can use while instead of Until.
' First set the browser / window object to a variable.
Code:
Set SomeBrowser = Browser("name").Page("name")
Call ToWaitUntil(SomeBrowser)
Public Sub ToWaitUntil(SomeBrowser)
Do
Wait 1
Loop Until SomeBrowser.Exist(1)
End Sub
' The problem with this procedure is that if for some reason the browser remains the same, then it will become an infinite loop.... also, you can use while instead of Until.