Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whether function can return number of links and their names in a web page
#2
Solved: 10 Years, 9 Months, 4 Weeks ago
Try the below code

Code:
oval=  lnkCount()
For j = lbound(oval) to ubound(oval)
    Print oval(j)
Next
Print "Total No . of Link" &  ubound(oval)

Function lnkCount()

   Set linkDesc = Description.Create
    linkDesc("micclass").value = "Link"
    Set lnk = Browser("g").Page("g").ChildObjects(linkDesc)
    For i = 0 to lnk.Count - 1
        ReDim Preserve lnkname(i)
        lnkname(i) = lnk(i).GetROProperty("name")
        
    Next
    lnkCount = lnkname
    
End Function
Reply


Messages In This Thread
RE: Whether function can return number of links and their names in a web page - by ssvali - 06-27-2012, 12:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Find the number of occurrences of each number present in a matrix. Kalai 2 3,386 03-30-2015, 11:28 PM
Last Post: gauravarora6611
  How to retrive the randomly number from the web page . ? njnirmal 10 8,125 10-08-2009, 11:50 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)