How to count no of link in the web page.

86 views
Skip to first unread message

Suresh Bhandari

unread,
Jun 13, 2010, 7:38:11 AM6/13/10
to mercu...@googlegroups.com
Hi All,


I have to count no of the links present in the www.google.co.in web page.

could u please help me to find code for the same using DP.



-- 
Regards,
Suresh Bhandari

arihan sinha

unread,
Jun 13, 2010, 10:23:20 AM6/13/10
to mercu...@googlegroups.com
Use similar below code to get the no of counts


Set obj=Description.Create()

obj("micclass").value="Link"

obj("html tag").value="A"

obj("innertext").value="Full-size image"

Set childobj =Browser(browser).Page(page).ChildObjects(obj)

countvalue= childobj.count


Regards
Arihan
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply all
Reply to author
Forward
0 new messages