Write a QTP script to print all the link names displayed in
a web page

Answers were Sorted based on User's Feedback



Write a QTP script to print all the link names displayed in a web page..

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

Write a QTP script to print all the link names displayed in a web page..

Answer / siba

set linkObj=description.create()
linkObj("micclass").value="link"

set linkChildObj=Browser("Google Accounts").page("Google
Accounts").childobjects(linkObj)
childCount=linkChildObj.count
msgbox(childCount)
for i=0 to childCount-1
linkName=linkChildObj(i).getROProperty("innertext")
print( linkName)
next

Is This Answer Correct ?    16 Yes 2 No

Write a QTP script to print all the link names displayed in a web page..

Answer / mani

go to any web page click on any link..store it in OR
manager...Then according to the browser name and page name
write the script
Example:


Browser("name").Page("name").weblink
("destination").GetROproperty("number of links")

Is This Answer Correct ?    11 Yes 16 No

Write a QTP script to print all the link names displayed in a web page..

Answer / bidyut prava

Browser("name").Page("name").Link("destination").Click

Is This Answer Correct ?    4 Yes 11 No

Post New Answer

More QTP Interview Questions

How can you quit from Action.

2 Answers  


Give me exact application where we should use low level recording?

6 Answers   CTS,


How many ways return more then one value from function?

2 Answers   Ingram Micro,


anyone can explian about types of "Triggere Events" in QTP

1 Answers  


Can we write class for vb script in Quick Test Professional?

2 Answers   JPMorgan Chase,






How do u write a regular expression for date (dd/mm/yyyy) field?

10 Answers  


In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls

0 Answers  


unique properties of button,edit box, radio button,check box?

1 Answers   IBM,


plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly?

2 Answers   CTS, Tech Mahindra,


difference Between LowLevel and Normal Recording Modes?

4 Answers  


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

0 Answers  


HI! I have completed my testing course in 2008. but now am working in banking sector as a data analyst and i want to move to an IT based company but am unable to understand whether i have to complete the testing course again and try for a job .

1 Answers  


Categories