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  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click 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 ?    1 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 ?    1 Yes 0 No
Venkatesh Kodagi
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to execute the test cases using QTP. i.e What is the use of QTP while execution  2
what are SetToProperty, SetROProperty,GetToproperty scripting?  2
What is smart identification? AZTEC2
How many function you use in your application? Polaris1
Associated files in QTP?  1
In my Script Firstly i have to parametrize the data then we import the data from c drive.suppose i have parametrize the Person name and company Name and i have enter one person name and one company name in the excel sheet now we import the sheet and the script is passed i want to ask one thing can we add more than one person name and more than one company name in the excel sheet suppose firstly we create person name "ADDy" and company nmae.'Wipro" and we set the current row in the script for this data and now we want run the script another set of data so how we can run the script with another set of data  2
hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri  7
How do you connect to database ,What is the script to connect DATA BASE? Nokia2
How to create runtime property for an object?  6
I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)  1
What is the Dynamic Scenario in QTP? And also anybody give the example for this?  3
what are the functions availabla in QTP? what are the data types in QTP? Spry-Technologies2
what is vmodel?advantages and disadvantages of vmodel? AZTEC3
Can you tell me any books or websites to learn VB Script for QTP ??  1
write is the code for regular expression in QTP IBM1
How we know the qtp has used the smart identification process for identification of the object. IBM3
I need diffrences between Object Identification, Smart Identification, Regular expresion,Low-Level Recording (enables you to record on any object in your application, whether or not QuickTest recognizes the specific object or the specific operation.) I am working on Web Application. In that object caption will change dynamically. For example, consider “Save” button. On clicking save button the caption changing as “ EDIT ”. From above concept which concept I have to use here? Ordain-Solutions2
what is the use of VIRTUAL OBJECTS? explain ? TCS10
QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop " Livetek2
waht is the difference between QTP 8.2 and 9.0 version AppLabs13
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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