Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy"
#1
Not Solved
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
Reply
#2
Not Solved
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
Reply
#3
Not Solved
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
Reply
#4
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 583 11-05-2023, 03:55 PM
Last Post: lravi4u
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 968 04-23-2020, 07:08 PM
Last Post: BGunay
  Fifth word from every thousand line in notepad files. sallu.iet@gmail.com 0 931 01-17-2020, 09:58 AM
Last Post: sallu.iet@gmail.com
  swfwindow object name getting changed after each run saniya 1 1,670 10-10-2018, 09:02 PM
Last Post: TheGlovner
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,782 05-04-2017, 03:52 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)