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
what is the diff b/w assistive and mandatary rules of object repository in QTP???
What are the different attribute used with regular expression?
how do i know how to use tools
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
what is actually contain test report? can anybody post the test report
What are the data types in qtp?
Give the syntax to load function at run time.
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
How to use debug tools?
How to break the object spy ?
can any body give the banking domain concepts/links
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?
How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))
When should I use smart identification?