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 write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

4745


When does ‘on click of button’ event gets triggered in the vbscript language?

547


How to open excel in vb script?

570


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1740


How to add actions in driver script to run those actions in QTP?

1520






What are the advantages of vbscript?

644


Explain the constants in vbscript?

563


Explain the scope of the variables using dim, public, and private keywords respectively.

720


Write a Script for ATM in QTP

3343


What are the data types supported by vbscript?

579


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3036


How to declare an array in vbscript?

668


Explain some uses of vb script?

553


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

569


How do you declare a variable in vbscript?

627