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
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
Explain different recording modes?
What are the challenges u faced in testing with crm domain? How u overcome with?
How to create runtime property for an object?
Where you are storing your script?
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.
how do i know how to use tools
How does quicktest professional identifies the object in the application?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
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.........
How to open a new test using quicktest professional (qtp)?
Get the count of files of similar types from a folder.
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