How to get all the objects count and objects names in
webpage using QTP ?

Answer Posted / chandu

u can count the objects in a webpage by using childobjects
method

set childobjs=Browser("BrowserName").Page
("PageName").childobjects
total=childobjs.count
msgbox total
n i don't know how to get the names...sorry..if u know
plese let me know

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In qtp, how you can remove the spaces from string?

546


How can you handle exceptions in qtp?

533


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

1620


How to open a new test using quicktest professional?

569


How can I check if a environment variable exist or not?

537






Which environments are supported by hp qtp?

596


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1486


Mention what are the different types of recording modes in qtp? Which will be used when?

557


What are the views available in qtp?

584


Suggest and Define a solution for an application whose objects are not recognized by UFT?

666


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

694


How can i check items sorted or not in a weblist ? Give me the script for this...

1574


why should we give deliver good quality software?

1625


ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS

1522


What are the technologies supported by qtp?

561