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
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Your approach is right.
Instead of using abc = objlink, you should have used
abc = objlink.count()

and in place of msgbox = n.count, you should use msgbox = n

below is the modified version of your code.

--
Code:
SystemUtil.Run "iexplore.exe", "google.com"
n=abc()

msgbox n

Public function abc()

Set linkdesc=description.Create
       linkdesc("micclass").value="Image"
Set objlink = Browser("Google").Page("Google").ChildObjects(linkdesc)
abc = objlink.Count()

End Function
--

hope this helps.

Thanks,
Elango
Reply


Messages In This Thread
RE: Whether function can return number of links and their names in a web page - by elango87 - 12-07-2012, 08:40 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,593 03-30-2015, 11:28 PM
Last Post: gauravarora6611
  How to retrive the randomly number from the web page . ? njnirmal 10 8,676 10-08-2009, 11:50 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 2 Guest(s)