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

when will you do debug your script? and explain that process?

1453


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1379


If I change the object name in one action will it be updated in all the actions? Or not?

604


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

625


Shall we add Local Repository to shared object repository,if yes,how we add

5702






How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

535


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1439


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

1906


Tell me about your project? please help me how to tell about insurance project

1537


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2269


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2803


What is regular expression?

581


When you open QTP, how many sheets you can see?

664


What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

1403


what is error and fault in terms of software quality?

1509