In Static method of descriptive programming, we provide the set of properties and values directly in a single line, in form of the string arguments. Here is the format/syntax of DP: object’s Class Name(“property name:=property value”).Method
The second way to write descriptive programming is by using the Description object. This way is also known as Programmatic Description. Description Object also do the same thing as static way do but there are some differences. Description Object stores the properties and values of a particular object in an instance of that object. So it become easy to use it in the statement. Description Object are used with ChildObjects (very useful method) of QTP. It’s more useful if you are using multiple properties to identify object. As you will use only instance name in your statement, your code looks more organized. It’s very … Click here to continue…..