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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
Hello Everybody,

Can anyone tell me that in QTP how to count the number of 
webelements from the object repository.
Please provide the code.

Thanks in advance,
Gaytri
 Question Submitted By :: Gaytrisareen
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri
Answer
# 1
hai gayatri,
           we can count the no. of elements through Child 
Objects.wich is advanced feature in Qtp..........
 
Is This Answer Correct ?    0 Yes 0 No
Seeths
 
  Re: Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri
Answer
# 2
Hi Seeths,

It is fine that we can use the child object property, I 
also used the same, But the problem is that I want to count 
the number of labels present in the specific page.

In addition to the above I also need that suppose:
1. I captured some of the labels of the web page.
2. Now in my script i used 
Set oweb=Description.Create()
oweb("micclass").value="WebElement"
set lists=browser("Yahoo!").Page("Yahoo! Mail - The 
best").ChildObjects(oweb)
numberoflists=lists.count()
msgbox(numberoflists)

this will display the number of webelement of the above 
specified page.
3. I want if that webelement exists in the Object 
Repository then it will add it to the list. and thus count 
all those webelement that also exists in the Object 
repository.

Thanks,
Gaytri
 
Is This Answer Correct ?    0 Yes 0 No
Gaytri
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi  2
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
hi This is Harish.1. What is object repositery .2. what is frame works in QTP,what is keyword driven frame work,explain it and how to associate the folders.3.the build is developed in java, can we write scripting in vb .4.what is discriptive progaram,how to write it.5.what is process of QTp testing.6. how to associate the shared repository. 7.what is implicit and explicit 8.what is runtime data please replay me regards Harish Syntel3
Hi, OUR PROJECT NAME IS: HOSPITAL CONTROL SYSTEM. IS IT COMES UNDER WHICH DOMAIN(HEALTH CARE OR HEALTH INSURANCE) Four-soft3
How to "Turn Off" QTP results after running a Script?  2
How to make Shared object repository in qtp 9.1 and 9.2?  2
Hi Guys, I am very new to QTP tool , In real time environment how to test the application with this tool, 1. How to load application in QTP tool 2. How to write test script in QTP. 3. In manual testing we test login box (user id , password) how can we test this kind of testing with QTP tool with examples . Please guys put some focus on my questions , real time ecperienced answers would be appreciate, advance thanks ,please guys i am expecting ur answers as soon as posible IBM1
In automation testing Can we retest virtual object in the application after getting new version from the developers, is there any property will change for that object or it won't.? Siemens1
Hi all, i have installed QTP8.2 in my system. but script is not generating while recording. What is the problem? is any file missing? pls let me know anybody...Thnaks  3
what is the recovery scenario?  1
what is the use of VIRTUAL OBJECTS? explain ? TCS10
does qtp need record and playback in realtime. plz tell exactly wat happens HP3
what is framework? which frame work u follow for writting script? IBM5
what is the difference between link and hyperlink? Infosys4
How the QTP recognize, handle n reports that a error has been handled by it(QTP) when we perform a recovery scenario in our application n in what manner it will display it in resulting window? Plz help me out.  1
why don’t use real time they r not using check points Wipro1
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 handle XML exceptions in QTP (Here it is Exception, not the checkpoint) CFC2
how to capture the run time values of web table. CTS2
We developed 100 descriptive programms and put in running, in the midle if any descriptive program is stucked with some error? what will happend weather it will execute the remaining prg's or it will terriminate ? Kanbay5
 
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