Micro Focus QTP (UFT) Forums
General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" (/Thread-General-run-error-Line-18-Loop-while-Browser-Index-0-Object-Busy)



General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" - AshokReddy - 12-19-2013

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.

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



RE: General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" - sshukla12 - 12-20-2013

Hi,
In order to replicate the issue, I copied ur code at my end and its running fine.
Not sure why, but it worked.

Regards,
Sankalp


RE: General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" - AshokReddy - 12-20-2013

When i ran the same piece of code in different machine it worked. I am unsure why this error is coming when i run it in my machine. I tried different ways to make it work, but still it is not identifying the code -- browser("index:=0").object.busy. The qtp is behaviour is weird in many ways in my machine. Could it be a problem of installation. If so, how to do clean un-install and re-install the qtp in the machine. Please do the needful

Thanks
Ashok


RE: General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" - sshukla12 - 12-20-2013

Hi,

If u wish, u can uninstall the QTP and re-intall it.Just cross check the system configuration also.
Might be some issue related to installation.

Regards,
Sankalp