
Loading ...
This article would go over some common mistakes people make while using Descriptive Programming (DP) in QTP.
Using strings with Pattern
Let’s assume we want to click a link “Logout (Tarun)” on my web page. Two possible methods that can be used are
Method 1
Browser("miccclass:=Browser").Page("micclass:=Page").Link("text:=Logout (Tarun)").Click
Method 2
Set oDesc = Description.Create
oDesc("text").Value = "Logout (Tarun)"
Browser("miccclass:=Browser").Page("micclass:=Page").Link(oDesc).Click
Now both the above methods will [...]
Register or Login to read the full article...
Tags used -
cannot, Class, Class Name, Common, Descriptive, Descriptive Programming, identify, micclass, Object

Loading ...
In our Last DP Part 1 article we saw how to convert an OR based script into a DP based script. But what we didn’t discuss was the micclass property we used for the Browser. This article will go over various aspects of properties and introduce some terms that I use for DP
micclass
micclass represent the [...]
Register or Login to read the full article...
Tags used -
Class Name, Descriptive, Descriptive Programming, micclass