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

Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

1946


How do you send email with attachment from outlook using qtp ?

563


Explain about datafile/verification of date file when file is not available in local system?

2227


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2399


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1734






How to suppress warnings from the test results page?

604


Who uses qtp tool?

576


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1526


what is clean sweep?

1887


How to save your test using quicktest professional?

536


What is the file extension of the code file in qtp?

563


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1429


what is keyword driven testing in qtp?n how is it useful?

1493


What is quick test pro?

592


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1587