Tuesday, May 24, 2011

What is Description Object?

What is Description Object?
The description object enables descriptive programming which is basically accessing GUI objects without actually recording / storing them in an Object Repository. The description object will store a set of "properties" typically a "name and value pair" for a particular "class" which then can be accessed with the help of the description object.
e.g:
Set obj_desc = Description.Create
obj_desc("html_tag").value = "Password"
obj_desc("name").value = "txtUserPassword"
The name/value pair in this case is "html_tag" and "Password".It implies that the gui object will be an html tag with the tag name as Password.
Hence in the above case we manage to identify the gui object without actually referring to the object repository and then can use it inside the code to manipulate / perfrom operations on that object.

No comments:

Post a Comment