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
#2
Not Solved
Code:
sLink=Browser("opentitle:=Gmail.*").Page("title:=Inbox.*").Link("name:= Inbox.*").GetROProperty("innertext")
iEmails = Split(sLink, " ")(1) 'have total number of unread email count as (3)
iEmails = Replace(iEmails, "(", "") 'this statement replace first ( to blank, now iEmails have partial number as 3)
iEmails = Replace(iEmails, ")", "") 'replace ) to blank space statement as 3

Msgbox "You Have " & iEmails & "unread mails(s)"

I hope this work out for.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need an Excel Driven web Program - Ready to Pay as well mayajain 0 1,798 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,778 09-28-2012, 11:19 PM
Last Post: srselva
  Framework for calculator program sravsand 2 4,428 02-10-2011, 10:25 AM
Last Post: ksrikanth2k9
  Can QTP call another program, query, or stored procedure salmankhan20039 1 2,944 07-01-2008, 11:17 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)