Hi,
searching for UI elements in the visual tree using the Find class is very common in UI tests. Calling SilverlightApp.RefreshVisualTrees or FrameworkElement.Refresh is quite expensive and slows the test execution down, but sometime unavoidable (as far as I know) to detect newly created elements, popups etc.
In most cases, it is clear for which dialog/popup etc. I'm looking for. I know where in the visual tree it will appear. But I always have to call Refresh on the (potential) parent (or even SilverlightApp.RefreshVisualTrees), which seems to work through the entire (sub-) tree.
I'd like to limit the search/refresh depth in theses cases. Is this possible somehow? Is it a sensible feature request?
Some other ideas how to speed up the detection of newly created elements?
Regards,
Andreas
searching for UI elements in the visual tree using the Find class is very common in UI tests. Calling SilverlightApp.RefreshVisualTrees or FrameworkElement.Refresh is quite expensive and slows the test execution down, but sometime unavoidable (as far as I know) to detect newly created elements, popups etc.
In most cases, it is clear for which dialog/popup etc. I'm looking for. I know where in the visual tree it will appear. But I always have to call Refresh on the (potential) parent (or even SilverlightApp.RefreshVisualTrees), which seems to work through the entire (sub-) tree.
I'd like to limit the search/refresh depth in theses cases. Is this possible somehow? Is it a sensible feature request?
Some other ideas how to speed up the detection of newly created elements?
Regards,
Andreas