Saturday 9 February 2013

no of links using descriptive.create and datatable



Number of links using descriptive.create and datatable

Set obj = description.Create()
        obj("micclass").value = "link"
    Set objc = browser("Yahoo! India").Page("Yahoo! India").ChildObjects(obj)
            countlinks = objc.count
            msgbox countlinks
            For i = 0 to countlinks -1
                datatable.SetCurrentRow (i +1)
                linkname =     objc(i).getroproperty("name")
                datatable ("links",dtglobalsheet) = linkname
            Next

No comments:

Post a Comment