What is Description Object?

Answer Posted / yedukondalu

Description object is an object where you can specify or assign some properties to an object and use the same.

Example: If you want to get the Link child objects in a page you can create a description object for the childobject and then search for that.

Set MyDescObj = Description.Create() 'Creating a description object
MyDescObj("Class").value = "Link" ' Assigning a property and value for the object.

'You can specify number of properties and value for the descripton object.

Set ChObjLinks = Browser().Page().ChildObjects(MyDescObj)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

531


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

1728


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

507


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1682


Is any limitation to xml checkpoints?

558






How to integrate the qualitycenter with qtp

1772


what is run action?

1435


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1378


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1908


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

1736


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1499


How will you check that your test cases covered all the requirements?

566


What is the difference between byref and byval in qtp?

586


In qtp, how you can use xpath to identify objects?

614


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1303