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

Answer Posted / devi

Set b=description.Create
b("micclass").value="Browser"
Set obj=desktop.ChildObjects(b)
msgbox obj.count
'browser("CreationTime:=4").close
For i=0 to obj.count-1
msgbox i
c=obj(i).getroproperty("name")
msgbox c

Next

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between quicktest professional and winrunner?

536


How QTP support all types of applications (platforms)?

4073


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

666


What is business process testing(bpt) in qtp?

690


How to record a qtp script ?

550






Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1577


Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)

1548


Explain actions in qtp ?

553


terminal services client

1786


how to disable the pop ups through QTP using a script

1720


How to recognise the webelement and verifying that webelement is enabled?

1641


Does quicktest professional is unicode compatible?

515


Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?

1552


Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

1580


How to run a test using quicktest professional (qtp)?

538