Replace the code in your function with below
Code:
'Assumption you will have only one browser
Do until Browser("CreationTime:=0").Object.StatusText = "Done"
msgbox Browser("CreationTime:=0").Object.StatusText
wait 1
Loop
Thanks,
SUpputuri
SUpputuri

