Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Total no of mail in gmail
#1
Solved: 11 Years, 5 Months ago
I want to print total no of mail in gmail and i created following code but this does not add no. of mails of last page

Code:
systemutil.Run "iexplore.exe","gmail.com"
browser("title:=.*").page("title:=.*").webedit("html id:=email","type:=text").Set "usename"
browser("title:=.*").page("title:=.*").webedit("html id:=passwd").Set "password"
browser("title:=.*").page("title:=.*").webbutton("html id:=signIn").Click

Set check = description.Create
check("micclass").value = "WebCheckBox"
set check_count = browser("title:=.*").page("title:=.*").ChildObjects(check)
total = 0
Do   while Browser("IE").Page("Page1").WebElement("Older ›").Exist

         Browser("IE").Page("Page1").WebElement("Older ›").click
                        
         total = total+check_count.count
Loop

print total
Reply


Messages In This Thread
Total no of mail in gmail - by excellentpawan - 06-17-2013, 08:45 PM
RE: Total no of mail in gmail - by learnQtptips - 06-18-2013, 03:13 PM
RE: Total no of mail in gmail - by Staff - 07-05-2013, 01:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  To send Fail Results to mail Naresh 1 2,529 04-23-2015, 08:30 PM
Last Post: babu123
  To send the QTP Results to mail using Thunderbird Naresh 0 2,398 04-03-2015, 03:19 PM
Last Post: Naresh
  This code does not give total no of links present on page plz help it returns 0 excellentpawan 8 5,613 01-17-2015, 07:49 PM
Last Post: yogi4tech
  How to delete particular mails in Gmail using QTP rajkumarsm 1 4,163 10-06-2014, 07:03 PM
Last Post: rajkumarsm
  I want to count total no of links in a page and click one by one excellentpawan 9 7,228 07-23-2013, 11:51 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)