I'm currently working on changing some tests of a WPF application that were formerly run under Ranorex 6 to Ranorex 8.1.2. In that change I want to also change to WpfImproved. Most of the stuff was OK and just required me to change the rxPaths. But sometimes I have found the following problem in the log:
After this the Element Tree is slightly different than normally and as a result about 2% of my rxPaths don't fit anymore.Failed to instrument WPF process. UI element identification capabilities for this window are limited.
Could not set-up managed injection endpoint: Bootstrapping Ranorex Instrumentation failed. The injection timed out. Probably the AUT is blocking the UI thread.
If your application is currently in startup state please try to add a delay action to your Ranorex test application before you execute actions on Ranorex elements to give Ranorex the possibility to load correctly into the AUT.
Sadly this problem seems to be pretty random and the solution of adding wait times as described here inconsistent-failed-to-instrument-wpf-p ... 11988.html works only sometimes.
I have found no way to check the status of the element tree and whether the WPF process failed. Is there any way to check for this fail so that I can add a "wait" until this was successful?
I'm testing under various Windows versions (Server, 7, various 10s)