I want to print total no of mail in gmail and i created following code 
please tell where am i wrong

systemutil.Run "iexplore.exe","gmail.com"
browser("title:=.*").page("title:=.*").webedit("html 
id:=email","type:=text").Set "username"
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) 

Do Browser("IE").Page("Page1").WebElement("Older ›").Click 'added object in 
object repository for older
until Browser("IE").Page("Page1").webelement("Older ›").exist
total = total+check_count.count

Loop
print total

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to