Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP childObject
#1
Not Solved
Hi,

I am using QTP11 with windows7 64 bit.
In my code I use the childObject method and in some cases it doesn't work.

I reproduce it with the below code and using file I generated with different number of the following link:
<a href="http://www.w3schools.com" target="_blank">Visit W3Schools</a>

If I have 10100 the code print 10100 objects.
If I have 10300 the code print 0 objects and there is error.

How can this be solved ? Is there a limit to the number of objects or time limit ?

Thanks

Code:
Set d = Description.Create
d("micclass").value = "Browser"
Set r = Desktop.ChildObjects(d)
Set br = r(0)
Set d = Description.Create
d("micclass").value = "Page"
Set r =br.ChildObjects(d)
Set p = r(0)
Set d = Description.Create
d("micclass").value = "Link"
Set r =p.ChildObjects(d)
print r.count
Reply
#2
Not Solved
I created a html file (see attached text file) with 22000+ links in the page and ran your code. I'm able to see the result correctly. As far as i know, there is no limit in getting count of child objects. Can you please retry with the attached file?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Childobject return wrong checkbox count.. VpnQTP 1 2,846 04-09-2015, 09:07 PM
Last Post: babu123
Cool Childobject in swfTable Pfeiffer 3 7,962 10-11-2010, 06:10 PM
Last Post: KavitaPriyaCR
  Childobject weird behavior jsknight1969 5 4,465 02-26-2010, 10:31 PM
Last Post: jsknight1969

Forum Jump:


Users browsing this thread: 1 Guest(s)