Answers

Question and Answer:

  Home  QTP

⟩ How to use Descriptive programming?

There are two ways in which descriptive programming can be used

By creating properties collection object for the description.

By giving the description in form of the string arguments.

By creating properties collection object for the description.

To use this method you need first to create an empty description

Dim obj_Desc ‘Not necessary to declare

Set obj_Desc = Description.Create

Now we have a blank description in “obj_Desc”. Each description has 3 properties “Name”, “Value” and “Regular Expression”.

obj_Desc(“html tag”).value= “INPUT”

 192 views

More Questions for you: