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 the smart identification is used in real time?Please explain with an example

1545


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1895


What is the difference between a Function and Action in QTP?

584


What is a quick test professional?

619


hou can we use vb script in qtp could u tell me breafly

1734






What is checking bitmaps?

548


When to use shared and local object repository?

628


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2095


How you can decide which type of object repository you have to use?

699


What is difference between shared and local object repository?

585


Difference between copy to action and call to action?

583


What is CMMP and CMMH?

691


I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

1442


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

1503


What are the different recording modes?

556