12-19-2013, 04:12 PM
For the below code, i am getting General Run Error as
"General run error.
Line (18): "Loop while Browser("Index:=0").Object.Busy". "
Please help me out know why this error is being throwed when executed. what line of code is causing the problem here.
"General run error.
Line (18): "Loop while Browser("Index:=0").Object.Busy". "
Please help me out know why this error is being throwed when executed. what line of code is causing the problem here.
Code:
Set odesc = Description.Create
odesc("micclass").value = "Browser"
Set coll = Desktop.ChildObjects(odesc)
For i=coll.count-1 to 0 step-1
Browser("CreationTime:="&i).close
Next
systemutil.Run "iexplore.exe","ww.gmail.com"
Browser("Index:=0").Page("index:=0").Sync
strt_time=timer
'sttime=TIMEVALUE(hour(time) &":"& minute(time)+1 &":"&second(time) ) timer- strttime>60
Do
If ( timer- strt_time) >60 then ' TimeValue(sttime) Then
Exit do
End If
Loop while Browser("Index:=0").Object.Busy