Write a QTP script to print all the link names displayed in
a web page
Answer Posted / 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 |
Post New Answer View All Answers
How does QTP identify an object?
What is checkpoints for quicktest professional?
Analyzing the checpoint results?
In qtp is it possible to check broken links of a page?
Explain the new feature of UFT regarding the export of test results?
How many types of recording modes in qtp?
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
What is action split and the purpose of using this in qtp?
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
what type of run time errors you get while you ar edoing rpg program?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
How many types of actions are there in quicktest professional (qtp)?
How will you check that your test cases covered all the requirements?
To which environments does quicktest professional supports?
What is keyword view in qtp?