Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Descriptive program
#1
Not Solved
Code:
Set objLink = Description.Create()
objLink("micclass").value = "Link"
Count=0
Set AllLinks = Browser("title:=Gmail.*").Page("title:=Gmail .*").ChildObjects(objLink)
For i=0 to AllLinks.Count-1
boldTag=AllLinks(i).GetROProperty("innerhtml")
If instr(boldTag,"<B>")<>0 AND instr(boldTag,"class=ts")<>0 Then
     Count=Count+1
End If
Next
msgbox "You have " & Count &" unread mail(s)"


@above code

im getting General Run Error Message
Reply


Messages In This Thread
Descriptive program - by RPS_QTP - 09-26-2012, 07:25 PM
RE: Descriptive program - by newqtp - 01-21-2013, 04:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need an Excel Driven web Program - Ready to Pay as well mayajain 0 1,718 04-22-2015, 05:21 PM
Last Post: mayajain
Shy Descriptive Program - Not able to use object property which is having Bracket srselva 2 2,648 09-28-2012, 11:19 PM
Last Post: srselva
  Framework for calculator program sravsand 2 4,316 02-10-2011, 10:25 AM
Last Post: ksrikanth2k9
  Can QTP call another program, query, or stored procedure salmankhan20039 1 2,832 07-01-2008, 11:17 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)