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

can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1786


Explain different recording modes?

676


What are the challenges u faced in testing with crm domain? How u overcome with?

1588


How to create runtime property for an object?

1540


Where you are storing your script?

723






How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

1894


how do i know how to use tools

1550


How does quicktest professional identifies the object in the application?

647


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

702


Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1727


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

2057


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

1665


How to open a new test using quicktest professional (qtp)?

617


Get the count of files of similar types from a folder.

1075


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

3917