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


Please Help Members By Posting Answers For Below Questions

www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1736


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1555


i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?

1747


How to explain a banking project in interview as a test engineer???

2834


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

928


How to get the particular property value?

799


What is difference between run time object and test object?

757


What is a checkpoint? How many check points are there in qtp?

747


Can you brief the hurdles you faced during Automation testing?

780


Where you get the run time data table?

775


What is QTP and the use of QTP in TD?

800


How to change the priorities of the recovery scenario properties?

830


hi nani my doubt is how does qtp process metrix related to software process.

1754


What are the key points to create a framework in QTP for oracle forms?

2004


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

760