Write a QTP script to print all the link names displayed in
a web page
Answer Posted / xyz
set linkObj=description.create
linkObj("micclass")="link"
set linkChildObj=B().p().childobjects(linkObj)
childCount=linkChildObj.count
for i=0 to childCount-1
linkName=linkChildObj(i).getROProperty("innertext")
msgbox linkName
next
| Is This Answer Correct ? | 52 Yes | 10 No |
Post New Answer View All Answers
Why bpt?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
Can the user toggle between using Local OR and shared OR for the same action?
Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also
What are some test assets and related extensions of qtp?
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
Can we Test Welcome Screens and Process Images with QTP
can u please explain what is the exact difference between qtp8.2 and 9.0
can the activities of test case design be automated?
How we can import data from database?
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
what is error and fault in terms of software quality?
Hi All, How to get repeated word in string . Thanks Balaji
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",