Micro Focus QTP (UFT) Forums
Description Object - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Description Object (/Thread-Description-Object)



Description Object - Sanjith Kumar - 08-03-2010

What is Description object in QTP/UFT? How is it related to Descriptive Programming?


RE: Description Object - supputuri - 08-04-2010

HI Sanjith,

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 then you can create a description object for the childobject and then search for that.
Code:
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.

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

Please let me know if you need any more info.