Open Yahoo Login Page
in that page Suppose i have 100 mails and i want to delete
10'th mail now give procedure & Coding For that Scenario
Answers were Sorted based on User's Feedback
Answer / ddpras
Browser("Yahoo!").Page("Yahoo!").Link("Mail").Click
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("login").Set "ch_sumathi2004"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("passwd").SetSecure "486c6f4be481a70bf13b2b81453298b462a1"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebButton
("Sign In").Click
Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").Link
("Inbox (10)").Click
Set k=Browser("Yahoo!").Page("Inbox (10) - Yahoo!
Mail").webtable("inbox(10)").ChildItem
(10,1,"WebCheckBox",index)
k.Set "ON"
Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").WebButton
("Delete").Click
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / jaipalreddy
Option explicit
Dim a,b,c,d,e,odesc
set odesc=description.Create
odesc("micclass").value="WebCheckBox"
Set a=Browser("Business Mail").Page("Business Mail").Frame
("abody").WebTable("From").ChildObjects( odesc)
b=a.count
For c=1 to b step 1
If (c=10) Then
a(c).set "ON"
Browser("Business Mail").Page("Business Mail").Frame
("abody").WebButton("Delete").Click
End If
Next
Is This Answer Correct ? | 6 Yes | 2 No |
Browser("Yahoo!").Page("Yahoo!").Link("Mail").Click
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("login").Set "ch_sumathi2004"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebEdit
("passwd").SetSecure "486c6f4be481a70bf13b2b81453298b462a1"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebButton
("Sign In").Click
Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").Link
("Inbox (10)").Click
k=Browser("Yahoo!").Page("Inbox (10) - Yahoo!
Mail").webtable("inbox(10)").ChildItem
(10,1,WebCheckBox,index)
k.delete
Is This Answer Correct ? | 7 Yes | 5 No |
Answer / venkata rajkumar b
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
("passwd").SetSecure "486c6f4be481a70bf13b2b81453298b462a1"
Browser("Yahoo!").Page("Yahoo! Mail: The best").WebButton
("Sign In").Click
Browser("Yahoo!").Page("(10 unread) Yahoo! Mail").Link
("Inbox (10)").Click
b=Browser("Yahoo!").Page("Inbox (10) - Yahoo!
Mail").webtable("inbox(10)").ChildItem
(10,1,"WebCheckBox",0).Set "ON"
b.Delete
Is This Answer Correct ? | 4 Yes | 4 No |
How to create pull down menu box using vb script
Mention the environments where vbscript could be run?
when you use For Loop, While..do, do..while? at what situations which loop will use.
How to find a latest file from any folder
what is the differance between BYVAL,BYREF?
How can we return a value from User Defined Function ? For Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b) and i am addding those 2 and storing in to another var (c). Now i want to pass that var(c) to another function (fun2). What will be the script?
When are redim statement and preserve keyword used in the vbscript language?
There is a web Table where You will find Two Columns First Column consist of Check box and Second column consist of Test cases ID(Viz T1,T2,T3....Etc); If You select any Test case ID, respective Check boxes to be checked write a VBSCRIPT for this scenario?
write a vb-script code to delete all the mails in my gmail in the year 2011
plz give ans to this in vb script........ "krishna radha" i want to print this string "Radha Krishna" like this
What are the 2 ways in which a variable can be declared in the vbscript language?
I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30