How to delete 10 first mails by using qtp

How to delete 10 first mails by using qtp

i need to delete 10 first mails from mail box by using qtp

Questions by Malli143

Showing Answers 1 - 6 of 6 Answers






Browser("Yahoo!").Page("Yahoo!").Link("Mail").Click Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("login").Set "venkatraj.banka" 
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit 
("password").SetSecure "password" Browser("Yahoo!").Page("Yahoo! Mail: The best").WebButton 
("Sign In").Click Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").Link 
("Inbox (10)").Click  
For i = 1 to 10

b=Browser("Yahoo!").Page("Inbox (10) - Yahoo! Mail").webtable("inbox(10)").ChildItem
(i,1,"WebCheckBox",0).Set "ON"
Next b.Delete

govindraj

  • Sep 11th, 2008
 

Dim i

for i = 1 to 10
 
browser("Yahoo").page("Yahoo-mail").webtable("inbox(50)").childitem(i,1,"webcheckbox",0).set "ON"

Next

browser("Yahoo").page("Yahoo-mail").webbutton("Delete").click

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions