Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Description Object
#1
Solved: 10 Years, 10 Months ago
What is Description object in QTP/UFT? How is it related to Descriptive Programming?
Reply
#2
Solved: 10 Years, 10 Months ago
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.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Taking Property values in Description objet throw Excel Sheet devarapallliramana 3 2,918 03-11-2014, 10:50 PM
Last Post: supputuri
  error with msdn's description of overwrite value of CreateTextFile ?? anu05446 1 2,476 03-10-2014, 02:48 PM
Last Post: basanth27
  Description about Types of Ordinal Identifier abhijit.airforce 1 2,386 12-27-2013, 02:57 PM
Last Post: Ankesh
  WebElementobject's description matches more than one of the objects sumanth 5 3,616 10-29-2013, 03:15 PM
Last Post: Sathiya
Sad Empty Server description SAP GUI 7.20 with QTP11 sylvester618 2 4,578 09-10-2013, 06:05 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)