Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 :-)

Answers were Sorted based on User's Feedback



How to write script to display a message box having the "Date" value of the fourth mail(..

Answer / venkatesh kodagi

Set oPageObject = Browser("browsername").Page
("pagename").Object
Set oTableObject = oPageObject.getElementsByTagName("table")


sActualText = oTableObject
(inxexoftable).rows(3).cells(columnnumberofdate).innerText

inxexoftable = if page have multiple tables then the index
should be the inbox table.

hope this will helps u.

Is This Answer Correct ?    2 Yes 0 No

How to write script to display a message box having the "Date" value of the fourth mail(..

Answer / 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

More QTP Interview Questions

How to do excception handling ( error handling ) in QTP

6 Answers   Institute for Medical Education,


In Manual testing , can u prpare bug report in TD?

1 Answers   TCS,


what is the main process in QTP?

3 Answers   Ordain Solutions,


How to capture data from images in QTP and produce them in Excel sheet ? please ans...

3 Answers   Sapient,


what is the extension for QTP files?

16 Answers   American Solutions,


one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.

0 Answers   Mindlance,


What are the types of environment variables in qtp?

0 Answers  


What will be the output of the statements below? On error Resume Next Sum 100/0 if Sum= 0 Then msgbox "Pass" else msgbox "Fail" End If

3 Answers   IIT,


how will u choose a tool for test automation ?

1 Answers  


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

0 Answers   TechSoft,


If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


How u prepare Test result summary in QTp?

4 Answers   CGI,


Categories