how do find current links in webpage for ex: in
yahoowebsite today mainpage is having 50 links and next day
same page is having 60 links. if i run same programe it
should display total links in webpage ?
Answer Posted / sudheerreddym
Set link obj=description.Create
linkobj("micclass").value="link"
Set link childobjs=browser("Yahoo").Page("Yahoo").chldobjects(linkobj)childcount=link childobjs.Count
for i=0 to child Count-1
msgbox link childobjs(i).getRoproperty("innertext")
next
if u want to click on the last link on that page:
browser("Yahoo").page("Yahoo").link(index:="&childCount-1).cclick
set linkobj=nothing
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can I use Call dlls in QTP ?
Please guide me release notes of Automation once scripts are completed
Explain different types of action in qtp?
What is the limitation to XML Checkpoints?
What is the difference between call to existing action and copy of an action?
Explain different recording modes?
What are the common defects found in your project? (in qtp interview)
when a test case is written how u test using qtp
What Folder Structure following in Keyword Driven Frame work?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
Explain the features of quick test pro(qtp)?
What are the differences between quicktest professional (qtp) and winrunner?
What is qtpro? What is quick test pro?
How will you test a keyboard?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers