Hadar308 Absent Member.
Absent Member.
385 views

QTP not finding objects when there are more than 10125 objects

I run the below code on different pages that I created.

The page contain different number of links.

If there are 10125 links it print "10125"

If there are 10250 links it give zero.

How can I configure qtp that it will work on any page size ?

Is there a max number of objects that QTP can handle ?

Attach is file example with 12000 links that I used.

 

0 Likes
2 Replies
Hadar308 Absent Member.
Absent Member.

Re: QTP not finding objects when there are more than 10125 objects

The 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

 

0 Likes
Hadar308 Absent Member.
Absent Member.

Re: QTP not finding objects when there are more than 10125 objects

It might also related to the time it takes QTP to analyze the page.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.