How to write script to display a message box having
the "Date" value of the fourth mail(yahoo account).
I've tried it with the web table concept but the content
doesn't get displayed?
Please help me out to resolve this :-)

Answer Posted / amarendra kothuru

In Yahoo mail, if you want to fetch the Date of the four row
(mail), use the following code

E.g: Using record and playback
msgbox Browser("Yahoo! Mail - amar_kothuru@yah").Page
("Yahoo! Mail - amar_kothuru@yah").WebTable
("Sender").GetCellData(4,9)

E.g.:Using Descriptive Programming
msgbox Browser("name:=Yahoo! Mail -
amar_kothuru@yahoo.co.in").Page("title:=Yahoo! Mail -
amar_kothuru@yahoo.co.in").WebTable
("name:=toggleAll").GetCellData(4,9)


Why you are not able to fetch the date value is

Sometimes QTP gives invalid column count of the webtable
and if you follow the same, you can't able to fetch all
column values.. So try different combinations of column
numbers(more than actual columnCount) and get the results.

When you add Webtable object to object repository and it
shows the column count as 7. I think, you tried upto the
column number 7. But if you pass the column number as 9,
you could get the date value. if pass column number as 10,
you would get Size value.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention the different actions types of qtp.

571


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

912


What test you perform mostly? Regression or retesting in your testing process?

574


What is Port testing. Whhen will you perform?

1492


How can i check items sorted or not in a weblist ? Give me the script for this...

1571






What is ‘object spy’ and what is the function of object spy in qtp?

569


Explain the checkpoint in qtp?

584


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

2485


Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.

1438


What is output value? How many types of output values are there in qtp?

574


How to recognise the webelement and verifying that webelement is enabled?

1637


what is supply chain management?

2081


How to explain a banking project in interview as a test engineer???

2589


How will internal and external links be validated and updated? how often?

637


How QTP support all types of applications (platforms)?

4071