we have a link in a website or webtable How can we record
link in that table or site? link is not static we don't
know exact location of that link? how ? if u know pls give
reply with script also?

Answer Posted / akshay soni

for a website
bro=""
url=""
set desco=description.create
desco("micclass").value="link"
with browser("title:=give respctive browser title name")
set lis=page("title:=give respctive browser title name").childobjects(desco)
ls=lis.count
for i=0 to lis-1 step 1
x=lis(i).getroproperty("name")
y=lis(i).getroproperty("url")
print(x&" "&y)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Descriptive Programming Types with Examples?

921


What is optional step in qtp? How you can add optional step in qtp?

530


How often were they executed?

2034


What is the difference between a Function and Procedure in QTP?

675


iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com

1398






How to attach a file to TD?

651


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1355


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2794


How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

2753


Key word driven framework

1682


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1355


Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1469


Explain runtime dynamic settings?

2022


what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

1548


How can you exit from an action?

610