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 access array data?
What is dictionary object in vbscript? Explain?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
How to create a cookie using vbscript?
What is variant in vb script?
Explain some uses of vb script?
How can you destroy an object in vbscript?
Why is the use of exit do or exit for statements within loops discouraged?
What is loose binding? Why is it not a good practice to use it?
Mention the rules for using option explicit statement?
Which event is triggered when mouse focus comes out of an element in the vbscript language?
What methods are used to create text files and open text files in the vbscript language?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
What are class properties?
Explain the operator precedence in vb script?