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
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
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..
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?
How to explain a banking project in interview as a test engineer???
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
How to get the particular property value?
What is difference between run time object and test object?
What is a checkpoint? How many check points are there in qtp?
Can you brief the hurdles you faced during Automation testing?
Where you get the run time data table?
What is QTP and the use of QTP in TD?
How to change the priorities of the recovery scenario properties?
hi nani my doubt is how does qtp process metrix related to software process.
What are the key points to create a framework in QTP for oracle forms?
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?