how to identify the objects if application consists of objects
that have same properties.

Answer Posted / nitin sharma

suppose your object name is "obj"
then write this script

set "obj"=Description.Create()
obj("property").value=Class of object

set a=browser("browser").page("page").childobject(objectname)
msgbox a.count

For i=0 to a-1
DataTable.SetCurrentRow(i+1)
DataTable("URL",dtGlobalSheet)=a(i).getroproperty("url")
Next

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1456


Explain runtime dynamic settings?

2041


What is the quicktest professional (qtp) testing process?

588


regular expression in qtp standar check point for months from accepting months from january to december only

1493


What are the disadvantages of recording test cases in qtp?

607






If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1469


What is clean sweep?

1391


is it possible to add sheets to excel at runtime

3257


What is the pros and cons between QTP and Rational Robot

3304


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

2813


Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT

2070


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1365


How to use parameterization in qtp?

639


Describe the differences between functions and actions in UFT?

625


how to idetfy which test cases are automated?who will deside that plz tell me

1555