my assignment is,how can i differentiate between readed &
unreaded mails in my inbox ?, since for both readed &
unreaded having same properties for both test objects &run
time objects
Answers were Sorted based on User's Feedback
Answer / tvs ramakrishna chowdary
ya its possible by checking the object "webelement" html
tag property value
------------------------------------------------------------
htmal tag="B"
htmal tag="SPAN"
mail info generally as a webelement
set myreadwe=description.create
readwe("html tsg").value="B"
set myunreadwe=description.create
myunreadwe("html tag").value="SPAN")
all these read and unread mail web elements present in the
same frame underhierarchy as follows
cntread=browser(Gmail - Inbox (1) - krishnat.q).page(Gmail -
Inbox (1) - krishnat.q).frame(framname).childobjects
(myreadwe)
cntunread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail - Inbox (1) - krishnat.q).frame
(framname).childobjects
(myunreadwe)
msgbox "total no of read mails :"&cntread
msgbox "total no of un read mails :"&cntunread
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / tvs ramakrishna chowdary
ya its possible by checking the object "webelement" html
tag property value
------------------------------------------------------------
htmal tag="B" 'for to count unread mails
htmal tag="SPAN" ' for to count read mails
mail info generally as a webelement
set myunreadwe=description.create
myunreadwe("html tsg").value="B"
set myreadwe=description.create
myreadwe("html tag").value="SPAN")
all these read and unread mail web elements present in the
same frame underhierarchy as follows
cntunread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail -
Inbox (1) - krishnat.q).frame(framname).childobjects
(myunreadwe)
cntread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail - Inbox (1) - krishnat.q).frame
(framname).childobjects
(myreadwe)
msgbox "total no of read mails :"&cntread
msgbox "total no of un read mails :"&cntunread
Is This Answer Correct ? | 0 Yes | 0 No |
Does QTP support Java Script also. Which is one is preferrable for QTP, VB script or Java script
How to see entire results at the same timeafter the batch run.. Cannot see the entire results at a time. Is there a easier way view everthing at same,as our batch file very large
Hi This is tanya actually im facing problem in Qtp actully some time QTP doesnot recoznise the recorded object due to which script is going to fail.so can you tell me how we can handle this situation and i have another concerened issue is that at the time of run New errors comes every time so how we can handle this sitauation how we can add Recovery scenarios to the script.some time application runs successfully and some time it produces new error thats why i am facing lot of problem please give me the sugeestion as soon as possible.
How to make arguments optional in a function?
What are the views available in quicktest professional (qtp)?
in Qtp,how to display user name and pwd (script)in data table(global sheet).
How to handle Java tree in QTP?
What type of VB script u had done in expert view?
How can we use the "CreateObject("Wscript.Shell")" in QTP and what is the definition and purpose of it?
What are the different recording modes?
draw the qtp frame work?
What is the basic concept of quicktest professional?