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
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.
When does ‘on click of button’ event gets triggered in the vbscript language?
How to open excel in vb script?
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.
How to add actions in driver script to run those actions in QTP?
What are the advantages of vbscript?
Explain the constants in vbscript?
Explain the scope of the variables using dim, public, and private keywords respectively.
Write a Script for ATM in QTP
What are the data types supported by vbscript?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
How to declare an array in vbscript?
Explain some uses of vb script?
Why is the use of exit do or exit for statements within loops discouraged?
How do you declare a variable in vbscript?