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
What is the file extension of the code file in qtp?
What is quick test pro? What is a quick test professional?
What is test object model in quicktest professional (qtp)?
What are the types of object repository in qtp?
How you can delete excel file in qtp?
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
What are the different types of qtp test assets and their extensions?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
What are the trigger events in qtp?
What are the various automation frameworks available in qtp?
What does mean by Scope of Automation?n How we defined it?
Explain process of smart Identification in QTP?
Do you know how to connect database? Can you tell me the procedures?
What is standalone database?
Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.