06-17-2013, 08:45 PM
(This post was last modified: 06-18-2013, 07:50 AM by excellentpawan.)
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