schwarz
12 years agoOccasional Contributor
TestObj.FindAll()
We use this method: TestObj.FindAll(PropNames, PropValues, Depth, Refresh) for testing Delphi VCL Application, Refresh = true.
Usually, it works very well but sometimes it occures that objects
1. which are returned are shown at a wrong hierarchie level. In this case, when I examine the object tree in the object spy, the object tree changes after a moment to a slightly different (and I assume correct) structure.
2. have wrong properties, e.g. "Visible = False" (although they are visible according to the object inspector)
This can be solved by performing a "dummy" search before:
TestObj.FindAll("Name","dummy", 100, true);
After this call, the objects are found correctly and their properties are as expected. It´s no timing issue or similar, seems to be anything related to object tree caching, but I don´t know.
Can anyone help? Are these known issues?
Regards... Jens Schwarz
Usually, it works very well but sometimes it occures that objects
1. which are returned are shown at a wrong hierarchie level. In this case, when I examine the object tree in the object spy, the object tree changes after a moment to a slightly different (and I assume correct) structure.
2. have wrong properties, e.g. "Visible = False" (although they are visible according to the object inspector)
This can be solved by performing a "dummy" search before:
TestObj.FindAll("Name","dummy", 100, true);
After this call, the objects are found correctly and their properties are as expected. It´s no timing issue or similar, seems to be anything related to object tree caching, but I don´t know.
Can anyone help? Are these known issues?
Regards... Jens Schwarz
- Did you try using the Refresh method before your FindAll?
http://support.smartbear.com/viewarticle/58142/?_ga=1.49098982.1554134704.1392816096