Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get total links visible on a webpage
#1
Not Solved Question 
Hi,

I tried fetching all the links on a webpage using the following code.

Code:
Set oDesc = Description.Create()
    oDesc("micclass").Value = "Link"
    Set ChildCount = Browser("name:=.*").page("title:=.*").ChildObjects(oDesc)
    num = ChildCount.Count

But it returns me links which are even not visible on the page. I would like to get only a set of visible links on the current page.

I tried using the "Visible" property as well but it reruns 0 objects.
Reply


Messages In This Thread
Get total links visible on a webpage - by Sanjay_DP - 02-10-2011, 02:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Capture All text from webpage and copy it... mpatra 3 4,920 07-25-2018, 05:33 PM
Last Post: vimlesh
  [UFT 12.52/VBScript] Test object exist, is visible and enabled before take an action sparkwanted 0 3,455 02-07-2017, 12:28 AM
Last Post: sparkwanted
  Reading XML Data from a WebPage shaan.mishra87@gmail.com 1 2,047 09-28-2016, 09:16 PM
Last Post: supputuri
  Using static descriptive programming how to count no. of objects on any webpage alpha1 4 6,738 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,576 07-22-2015, 09:36 AM
Last Post: abhideshpande001

Forum Jump:


Users browsing this thread: 2 Guest(s)