Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General run Error
#1
Not Solved
i am getting the General Run Error for below Code
and i have attached the Code as well.
Please can find out what the problem is please..??

can u any one suggest me the right answer please ...
please..

----------------------------------------------------------------------
Code:
For j=1 to datatable.GetSheet("OR1").GetRowCount

       datatable.GetSheet("OR1").SetCurrentRow(j)

       If datatable("name","OR1")=ObjectName Then

           If datatable("micclass","OR1")<>" " Then
               desc("micclass").value=datatable("micclass","OR1")
           End If

'           If datatable("html id","OR1")<>" " Then
'               desc("micclass").value=datatable("html id","OR1")
'           End If

           If datatable("class","OR1")<>" " Then
               desc("micclass").value=datatable("class","OR1")
           End If

           If datatable("innertext","OR1")<>" " Then
               desc("micclass").value=datatable("innertext","OR1")
           End If

     Set obj=Browser("creationtime:=0").page("title:=.*").ChildObjects(desc)

    Set FindObject=obj(0)
      'obj1=FindObject(obj)

       End If

   Next
End Function


Attached Files
.txt   FuncLib2.txt (Size: 803 bytes / Downloads: 87)
.txt   FuncLib.txt (Size: 321 bytes / Downloads: 57)
.txt   Login.txt (Size: 431 bytes / Downloads: 64)
Reply
#2
Not Solved
Code:
Set FindObject=obj(0)

This wont work. obj per your description is an object and not an array.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Not Solved
So can u suggest me the right way to get the output for that code..??
Reply
#4
Not Solved
After executing the below code..i am getting object does not support at highlighted lines..
please have a look at it..
and reply me.

Object doesn't support this property or method: 'FindObject(...).select'

Function file: C:\Program Files\HP\QuickTest Professional\Tests\func_Lib_1.vbs
Line (22): " FindObject(ObjectName).select Data"


Function openbrowser(iexplore)
systemutil.Run "iexplore"
End Function

Function navigate(url)
browser("creationtime:=0").Navigate "http://salesforce.com"
browser("creationtime:=0").Sync
End Function

Function input(ObjectName,data)
FindObject(ObjectName).Set "akhan"
input="pass"
End Function


Function Login(object)
FindObject(ObjectName).click
Login="pass"
End Function

Function SelectList(ObjectName,Data)
FindObject(ObjectName).select Data
SelectList="pass"
End Function

is anybody there to give me the answer for above code.??
please suggest something so that i get it worked.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  General run error when Exist fails msacks 1 1,863 02-08-2019, 02:12 AM
Last Post: Ankur
  General Object Error(Find Object Error) akhandesh 1 3,605 02-24-2016, 01:05 PM
Last Post: sindhus
Rolleyes The test run cannot continue due to an unrecoverable error neerndg123 3 8,659 09-17-2015, 08:27 PM
Last Post: ananthakumarbe
  HI, i'm having a run time error ,please help? Awzar 0 2,638 01-24-2015, 06:52 AM
Last Post: Awzar
  Browser("BrowserName").Back gives General Run Error... deminiek 13 18,724 12-10-2013, 12:53 AM
Last Post: rizvia

Forum Jump:


Users browsing this thread: 1 Guest(s)