Micro Focus QTP (UFT) Forums

Full Version: Description Object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is Description object in QTP/UFT? How is it related to Descriptive Programming?
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.