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
Your roles and responsibilities and daily tasks? (As automation tester)
how to post xml data from QTP scripts to any application?
How qtp identifies objects?
after initiating one project for testing, when exacltly QTP tester role starts?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
How to use conditional loops in qtp ?
How to find Operating system information using QTP script?
I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.
hi nani my doubt is how does qtp process metrix related to software process.
Why bpt?
How to use reporter.report event in qtp ?
What are test settings and global settings?
How can you close the second opened browser?
What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?
Which scripting language used by quicktest professional?