Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

hai all.iam chandu..please let me know how to test a link
in QTP when it is changing at run time..and what property
we should take while we r using descriptive programming for
a link..

Answer Posted / pravati

set obj=Description.create()
obj("micclass").value="Link"
set linkobj=Browser("micclass:=Browser").page("micclass:=page").childobjects(obj)
for i=0 to linkobj.count -1
x=linkobj(i).Getroproperty("name")
if trim(x)="forgotten password?" then
linkobj(i).click
exit for
end if
next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to access array data?

945


What is dictionary object in vbscript? Explain?

1119


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2856


How to create a cookie using vbscript?

1123


What is variant in vb script?

1092


Explain some uses of vb script?

921


How can you destroy an object in vbscript?

1057


Why is the use of exit do or exit for statements within loops discouraged?

983


What is loose binding? Why is it not a good practice to use it?

1051


Mention the rules for using option explicit statement?

929


Which event is triggered when mouse focus comes out of an element in the vbscript language?

908


What methods are used to create text files and open text files in the vbscript language?

926


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

2972


What are class properties?

1103


Explain the operator precedence in vb script?

1014