Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
no. of links in a webpage
#1
Hi,

Can anyone reply with the descriptive programming how to get the no. of links in a web page with and without using child objects.

bye,
vamshi
Reply
#2
Hi,

If its WebPage, there should be a table in that page. i.e. every web page is having webtables, so u can find row count for that table. its nothing but no of links in that page

I hope you know how to get rowcount from webtable using descriptive programming.

just try it and let me know the result

Regards
KrishDeep
Chennai
Reply
#3
hi,
here an example with ChildObjects:

Code:
Dim brow, pag, descrLink, objLink, NoOfLink Set brow = Browser("property1:=value1", "propertyN:=valueN") Set pag = brow.Page("property1:=value1", "propertyN:=valueN") Set descrLink = Description.Create() descrLink("Class Name").value="Link" Set objLink = pag.ChildObjects(descrLink) NoOfLink = objLink.Count msgbox NoOfLink
Reply
#4
Hi,
Thanks for giving the reply.
Is there any chance of writing code without childobjects?
bye,
vamshi
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Capture All text from webpage and copy it... mpatra 3 6,019 07-25-2018, 05:33 PM
Last Post: vimlesh
  Reading XML Data from a WebPage shaan.mishra87@gmail.com 1 2,641 09-28-2016, 09:16 PM
Last Post: supputuri
  Using static descriptive programming how to count no. of objects on any webpage alpha1 4 7,863 08-11-2015, 08:48 PM
Last Post: kotaramamohana
  I want to click on all the links in the webtable. These links are nothing but some co abhideshpande001 0 2,970 07-22-2015, 09:36 AM
Last Post: abhideshpande001
  Embedded Text on webpage srach84 1 3,159 07-28-2014, 07:35 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)