Write a QTP script to print all the link names displayed in
a web page
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / bidyut prava
Browser("name").Page("name").Link("destination").Click
Is This Answer Correct ? | 4 Yes | 11 No |
What are the different ways to invoke an application using QTP?
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
What is data driven testing in QTP?
what is the diffrence between script and Language ? (Chandana)
How do you move objects from local object repository to shared object repository???What are methods?
how to write vbscript on web applications in qtp. explian with one example?
Is it a smart choice to use QTP for backend testing?
Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln
explain virtual object? in detailed? pls any one explain me?
What is the difference Between LowLevel and Normal Recording Modes?
How to export quicktest professional results to an .xls file?