Micro Focus QTP (UFT) Forums
Diff. between page checkpoint link count and childobj count - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Diff. between page checkpoint link count and childobj count (/Thread-Diff-between-page-checkpoint-link-count-and-childobj-count)



Diff. between page checkpoint link count and childobj count - anemuday - 07-20-2008

Hi,

I just want to know is there a difference between the number of links displayed in page checkpoint and the count displayed in the ChildObjects of type link?

Here is my script:
Code:
Browser("Browser").Page("Yahoo!").Check CheckPoint("Yahoo!") 'here in the page checkpoint the number of links are displayed as 172

Set descObj=description.Create()
'descObj("Class Name").value="Link"    here it returns an error
descObj("micclass").value="Link"
temp=browser("Browser").Page("Yahoo!").ChildObjects(descObj).count
msgbox(temp) 'here the count is displayed as 154

Thanks & Regards,
Uday.