How to get Links count in an web application,without
descriptive programming?
Answer Posted / venkatesh.m
Hi friends,
set odesc=description.create()
set odesce("htmltag").value="a"
set lists=browser("b.name").page("p.name").childobjects
(odesc)
set counter=lists.count
msgbox "total no.of links"& counter
for i=0 to counter-1 step 1
set link=lists(i).getroproperty("name")
msgbox link,0,"curren link is"
Next
The above script works correctly.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain how Does Run time data (Parameterization) is handled in QTP?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
what is ODC and GDC?
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
What is the short cut keys for the following?
why text area checkpoints cannot used for web applications
What do you to script when objects are removed from application?
When Recovery scenario actually starts while testing the application?
what are the limitations of smart identification in qtp 9.0
how u will evaluate the tool for test automation?
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 to use the object spy in quicktest professional (qtp) 8.0 version?
What are the properties you would use for identifying a browser and page when using descriptive programming?
What is the latest version of qtp?
How software automation specialist enter steps in the Expert View?