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 hitnalli

1)Open Flight Reservation Login page
2)Add Login page in to the Object Repository
3)Write below code and run it

ChildObj=Dialog("Login").ChildObjects.count
msgbox ChildObj


Thanks
Pramod
pramod_login@yahoo.com
9845454652

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are actions and functions different in QTP?

666


Is it possible to switch between recording modes during a test creation?

600


Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

1746


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

711


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1554






Explain about the test fusion report of quicktest professional (qtp)?

547


How you are developing the script? Using record and play back or manual?

637


How do you create new test sets in td?

543


what is object and child object.. explain ..if possible give some example for better understanding ..

1538


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

610


desribe a situation where u faced a stressful situation and how did u cope with it

1415


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1484


Describe how Smart Identification is used

1702


Analyzing the checpoint results?

605


They asked by using qtp recording writing scripting

2078