what is descriptive.create()in qtp?

Answer Posted / rashmi jaiswal

Set objdesc = Description.Create is used to create an object from which we can get child objects from any page like number of links present in a page or number of browser opened.

Ex:-
Set objdesc = Description.Create
objdesc("micClass").value ="Link"
Set childObj = Browser("Anyproperty").Page("Anyproperty").ChildObjects(objdesc)

print childObj.count will give you number of links present in the page.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

whare exactly we have to use functions and sub routain

2028


Hi, how can we check or avoid the memory leakage in QTP9.2?

1845


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1623


How you can find the absolute value of the number in qtp?

742


What is standalone database?

1978


What are the different kinds of test steps?

788


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

1668


If I change the property value at runtime is it effect is object repository?

833


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

1940


How to find a window is minimized or not

1621


How to test the login page in different ways in automation testing and i need code?

1558


give me the code to save all messages of inbox of gmail into a folder and notepad

1817


What is difference between Recording time object identification and Run time (Execution) time.

1230


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1661


Explain the terms test and business component?

760