DP Part 4 - Common mistakes

1 Star2 Stars3 Stars4 Stars5 Stars (14)
Loading ... 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...

Have questions related to this article? Want to request a new article? Use our forums to post your questions


Viewed 9,727 times

Related posts:

  1. Suscribe to Email

    Enter your email address:

    Delivered by FeedBurner