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..

Answers were Sorted based on User's Feedback



hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time....

Answer / sangee

U can get the value by using Object Spy and get the properties
which ever u want.

Is This Answer Correct ?    3 Yes 0 No

hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time....

Answer / chaitanyakumar.chivukula

we can test the frequently changed object like links or
buttons...etc with the help of DP...

we can test dynamicly changed links with help of DP with
Reg.Exp or creation of time.

Set link = Description.Create()

link("innertext").Value = "xxx"
link("innertext").Reg.Exp = "xxx"

Browser(Broswer).page(Page).weblink(link).click

Is This Answer Correct ?    2 Yes 0 No

hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time....

Answer / mulugu

href link in the properties

Is This Answer Correct ?    1 Yes 0 No

hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time....

Answer / 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

hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time....

Answer / ll

let me now answer

Is This Answer Correct ?    0 Yes 1 No

hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time....

Answer / anuj

From where will u get value of "XXX" ???

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More VB Script Interview Questions

reverse the string without using reverse string?

2 Answers   CSS Corp,


What are string functions in vbscript?

0 Answers  


I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30

1 Answers  


Am working with web application. i faced one senario. i.e, webpage having webtable having two coloumns, in that first coloumn is for serial no and second coloumn is for mac address link, now i want to get first row second coloumn value, that having macaddress as link. Please help me how to get that link?

2 Answers  


Diff between web table ,datatable and data base (QTP)

2 Answers   TCS,






Why do we use Option Explicit?

6 Answers  


write a vb script to display the size of the folder,date created and name of the folder

1 Answers  


Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript

1 Answers  


Both Static and dynamic arrays are handled by VB script. Is it true?

0 Answers  


what is the function to get the ascii value of the character?

6 Answers   Netxcell, Oracle,


How to remove the spaces in a string Ex: "this is apple"

5 Answers   Cap Gemini,


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

0 Answers   IBM,


Categories