Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Descriptive program
#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


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,717 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,644 09-28-2012, 11:19 PM
Last Post: srselva
  Framework for calculator program sravsand 2 4,315 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)