ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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 :-)
 Question Submitted By :: Radhika
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    0 Yes 0 No
Amarendra Kothuru
 
  Re: 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
# 2
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 ?    0 Yes 0 No
Venkatesh Kodagi
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What is obsolute path and relative path in QTP..? How to access them and what are the differences between them...?? Virtusa1
Explain about import and export files?  1
how u will describe testing activities?  1
Function to convert lowercase to uppercase in QTP Pls anybody can give the answer.. Thanks in advance... Navis1
Can u call winRunner scripts from QTP?  4
actually how many hours per one day we will work on automation (qtp) in real time Synechron1
There are 3 types of frame works in QTP 1. Linear frame work 2. Modular frame work 3. Key word driven frame work. Can any body explain the above 3 frame work models. y2k_ram2000@yahoo.com Fidelity2
Which scripting language QTP is using?  2
Plz explain about object propeties in object identification? means.. explain about 1. mandatory properties.2. assestive properties 3. ordinal properties. TCS3
Other than using import sheet statement for importing the data from excel sheet, is there any other method that can be used?  1
how can we call an external library file in QTP apart from using the Executefile statement..?? is there any other way we can call the external library file in QTP..?? DST-Global-Solutions1
What are the different scripting languages you could use when working with QTP ?  3
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance  2
Hello Everybody, Please tell me can we create Test Plan in QTP? This I am asking irrespective to integrating with Test Director.I mean is there any option to create Test Plan in QTP itself. Thanks, Gaytri  3
what is difference between analog and low level recording Intel2
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.  1
Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!  1
Can any body tell me how can I choose the share object repository and per action object repository mode. Please give me with steps.  2
we have 10 actions in out test how can we convert 9th action is main action ? how ?  4
When there is descriptive programming, why do we go for Object repository for desigining scripts.?? why cant we use descriptive programming instead of using the Object repository..?? DST-Global-Solutions2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com