Write a user defined function to count the no. of buttons
existed in a webpage ? i dont want to use descriptive.create
()
Answer Posted / pramod
1)Open Flight Reservation Login page
2)Add Login page in to the Object Repository
3)Write below code and run it
' Directly pass the login as argument to the function
childobj Dialog("Login")
' The function will take object as input argument and count
the child objects in the login page
Function childobj(CountObject)
aa=CountObject.ChildObjects.count
msgbox aa
End Function
Thanks
Pramod
pramod_login@yahoo.com
9845454652
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
How to add synchronisation points in qtp?
What are the different types of recording modes in qtp? Which will be used when?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
distinguish between old version and new version QTP features.
What are the types of object repository in qtp?
Difference between test object and run time object?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
Can you brief the hurdles you faced during Automation testing?
What are the methods of the TextStream object that are used for reading from a text file?
Where can I find and view run-time data table?