Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General error in Descriptive programming
#1
Not Solved
Hi,

Coudl someone please tell me why does this happen. I am trying to read links in a page and then saelect the links. But the script gives me error. Here is the code. It prints and clicks on some links but then gives error at this line: If Instr(SubGroupTag(a).GetROProperty("name"), "80269")Then


Code:
Set ObjSubgroup = Description.Create
ObjSubgroup("micclass").Value = "Link"
            
Set SubGroupTag = GroupInfo.ChildObjects(ObjSubgroup)    
            
sCount = SubGroupTag.Count

Print sCount            
For a=36 To sCount-1
'Print SubGroupLink(a).GetROProperty("name")
wait(5)
If Instr(SubGroupTag(a).GetROProperty("name"), "80269")Then    
Print "====" + SubGroupTag(a).GetROProperty("name")
If Len( SubGroupTag(a).GetROProperty("name")) = 11Then
SubGroupTag(a).Click
End If
wait(5)    
End If
Next

Thanks,
Sqadri


Attached Files Image(s)
   
Reply
#2
Not Solved
Hi,

Please use
Code:
If Instr(SubGroupTag(a).GetROProperty("name"), "80269")>0 Then
Regards,
Sankalp
Reply
#3
Not Solved
Hi Sankalp,

It still does not work. Any more suggestions please.

Thanks,
Sqadri
Reply
#4
Not Solved
Hi,
Give a try with optional parameters also.

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Descriptive PROGRAMMING sandeepm1989 0 2,006 01-21-2016, 11:46 AM
Last Post: sandeepm1989
  General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" AshokReddy 3 4,783 12-20-2013, 01:44 PM
Last Post: sshukla12
  Is this one instance where descriptive programming does not work? chong67 10 6,804 10-09-2012, 06:41 PM
Last Post: harishshenoy
  Descriptive Programming By giving the description in form of the string arguments sia sharma 6 4,854 09-12-2012, 08:57 PM
Last Post: freeboynil
  Can you use Descriptive Programming with Checkpoint? chong67 4 8,368 06-27-2012, 10:29 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)